Apps launched with pkexec have no access to server xsettings, Gtk falls back to org.gnome gsettings (Wayland)

Aperta
#6 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
49/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux
Ambito
desktop

Direzione di ricerca

Start by reproducing the theme behavior with an app launched through pkexec in both Wayland and X11 sessions, comparing default Mint themes with a downloaded theme. The issue names no source files or tests, so trace how elevated apps receive the session's theme and xsettings, then identify a test or reproducible check for that path. Done means elevated apps consistently use the selected theme in both session types.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Wayland session

During a wayland session the issue is more noticeable because it happens with all themes:

https://github.com/user-attachments/assets/b168871a-a33d-45b3-a2cf-b75562c7e70f

Video showing the issue.

Screenshot_mint-27_2026-11-27_15:02:57

Img. above with nemo open in a folder with elevated permissions.

Screenshot_mint-27_2026-11-27_15:02:30

Img. above with timeshift (which like the system administration needs elevated perms to open).

Changing the setting for the theme mode preference to dark mode didn't help in any of the cases above (since I think the issue is that the theme is not being loaded at all).

X11 session

In X11 sessions the theme is applied for all the themes that come by default with Mint, but if you download a theme from the theme module that applies to applications, it is only applied to the headerbar of the application open in elevated privileges, but the body of the application has the default adwaita themes applied instead:

Screenshot_mint-27_2026-11-27_15:09:38

Img. with nemo in normal mode on the right side and nemo open with elevated privileges on the left side using the Qogir theme downloaded from the theme module.

Considering the headerbar has the theme, and the default themes work, not sure what's the missing link for the X11 case.

Lingua principale
Nessun dato sulla lingua
Stelle
10
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di linuxmint/mint27-beta

Tutte le issue di linuxmint/mint27-beta

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.