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

未关闭
#6 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
49/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux
领域
desktop

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
没有语言数据
星标
10
派生
1
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

linuxmint/mint27-beta 的其他 Issue

查看 linuxmint/mint27-beta 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。