Skip to content

Commit 56e5231

Browse files
authored
fix: only apply QT_QPA_PLATFORMTHEME to cosmic desktop (#262)
1 parent b021fe9 commit 56e5231

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

modules/graphical/default.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,12 @@ in
162162
noto-fonts-cjk-sans
163163
];
164164

165-
environment.sessionVariables = {
166-
QT_QPA_PLATFORMTHEME = "qt5ct";
167-
};
165+
# Only change the setting for cosmic
166+
environment.extraInit = ''
167+
if [ "$XDG_CURRENT_DESKTOP" = "COSMIC" ]; then
168+
export QT_QPA_PLATFORMTHEME="qt5ct"
169+
fi
170+
'';
168171

169172
programs.dconf.enable = true;
170173

0 commit comments

Comments
 (0)