forge
Explore
Log in

Don't you dare go Hollow

Theme Qt apps started by systemd --user

Browse files at this commit

b315d05bd66d5ccece5ca597a7521fcdcb4f6a45Ahmet Kaan GümüşParent: 826fcc8
  • feat
    • theme Qt apps started by systemd --user
Show full message
feat(env): theme Qt apps started by systemd --user

kdeconnectd runs as an XDG-autostart systemd user unit, not as a child of
the compositor, so the QT_QPA_PLATFORMTHEME=gtk3 set in niri/hyprland never
reached it and its file-transfer dialog rendered with the default Qt palette
instead of the wallust-tinted GTK3 one. environment.d is read by the user
manager itself, so autostart and D-Bus-activated services inherit it too.
.config/environment.d/10-qt-theme.confadded+6 -0
@@ -0,0 +1,6 @@
1+# Read by the systemd --user manager at login, so it reaches services that are
2+# NOT children of the compositor (XDG-autostart units, D-Bus activation).
3+# The compositor env blocks (niri config.kdl / hyprland.conf) only cover
4+# processes spawned by the compositor itself, which is why kdeconnectd came up
5+# with the default Qt palette instead of the wallust-tinted GTK3 one.
6+QT_QPA_PLATFORMTHEME=gtk3