Skip to content

fix(gui): inherit wayland display and desktop styling for root GUI vi…#2445

Open
jtrag wants to merge 1 commit intobit-team:devfrom
jtrag:fix-wayland-root-gui
Open

fix(gui): inherit wayland display and desktop styling for root GUI vi…#2445
jtrag wants to merge 1 commit intobit-team:devfrom
jtrag:fix-wayland-root-gui

Conversation

@jtrag
Copy link

@jtrag jtrag commented Mar 16, 2026

Hello,

I am a new contributor, and I was fixing/modifying some things about BackInTime for myself today, but then I decided to do it as a contribution to the official project and add a much-wanted feature while I was at it (I added dry run). I have tested everything, and it works 100%. Screenshots shouldn't be necessary for these additions/fixes since nothing about the GUI itself has changed. I hope this helps others to continue to use BackIntime for many years to come!

fix(gui): inherit wayland display and desktop styling for root GUI via pkexec

  • Resolves crashing on modern Wayland compositors (like Pop!_OS COSMIC) by natively inheriting WAYLAND_DISPLAY and XDG_RUNTIME_DIR.
  • Injects comprehensive desktop styling variables (QT_QPA_PLATFORMTHEME, XDG_CURRENT_DESKTOP, GTK_THEME, etc.) into pkexec wrapper so the root-elevated GUI feels native and matches user styling.

Authored by @jtrag (https://github.com/jtrag).
If this fix helped improve your Linux desktop experience, please consider supporting my open-source work: ☕ BuyMeACoffee: https://buymeacoffee.com/jtrag
💙 PayPal: https://paypal.com/donate/?business=DN9W5GQ638WPQ

…a pkexec

- Resolves crashing on modern Wayland compositors (like Pop!_OS COSMIC) by natively inheriting `WAYLAND_DISPLAY` and `XDG_RUNTIME_DIR`.
- Injects comprehensive desktop styling variables (`QT_QPA_PLATFORMTHEME`, `XDG_CURRENT_DESKTOP`, `GTK_THEME`, etc.) into `pkexec` wrapper so the root-elevated GUI feels native and matches user styling.

Authored by @jtrag (https://github.com/jtrag).
If this fix helped improve your Linux desktop experience, please consider supporting my open-source work:
☕ BuyMeACoffee: https://buymeacoffee.com/jtrag
💙 PayPal: https://paypal.com/donate/?business=DN9W5GQ638WPQ
@buhtz
Copy link
Member

buhtz commented Mar 17, 2026

On hold until #2446 is merged.

@buhtz buhtz added the PR: Waiting for review PR won't be merged until review and approval from a member of the maintenance team. label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Waiting for review PR won't be merged until review and approval from a member of the maintenance team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants