diff options
Diffstat (limited to 'usecases/desktop')
-rw-r--r-- | usecases/desktop/graphical/sway.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usecases/desktop/graphical/sway.nix b/usecases/desktop/graphical/sway.nix index 5f5fcc6..2d9fc98 100644 --- a/usecases/desktop/graphical/sway.nix +++ b/usecases/desktop/graphical/sway.nix | |||
@@ -16,12 +16,18 @@ in { | |||
16 | wayland.windowManager.sway = { | 16 | wayland.windowManager.sway = { |
17 | enable = true; | 17 | enable = true; |
18 | 18 | ||
19 | extraSessionCommands = '' | 19 | extraSessionCommands = let |
20 | schema = pkgs.gsettings-desktop-schemas; | ||
21 | datadir = "${schema}/share/gsettings-schemas/${schema.name}"; | ||
22 | in '' | ||
20 | # https://github.com/emersion/xdg-desktop-portal-wlr/issues/20 | 23 | # https://github.com/emersion/xdg-desktop-portal-wlr/issues/20 |
21 | export XDG_CURRENT_DESKTOP=sway | 24 | export XDG_CURRENT_DESKTOP=sway |
22 | # https://github.com/emersion/xdg-desktop-portal-wlr/pull/11 | 25 | # https://github.com/emersion/xdg-desktop-portal-wlr/pull/11 |
23 | export XDG_SESSION_TYPE=wayland | 26 | export XDG_SESSION_TYPE=wayland |
24 | 27 | ||
28 | # Makes gsettings work | ||
29 | export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS | ||
30 | |||
25 | export SDL_VIDEODRIVER=wayland | 31 | export SDL_VIDEODRIVER=wayland |
26 | 32 | ||
27 | export QT_QPA_PLATFORM=wayland | 33 | export QT_QPA_PLATFORM=wayland |