Navigation Menu

Skip to content

Commit

Permalink
sddm: remove cache in preStart
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Oct 22, 2017
1 parent e458c44 commit 17553ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nixos/modules/services/x11/display-managers/sddm.nix
Expand Up @@ -17,9 +17,7 @@ let
exec systemd-cat ${dmcfg.xserverBin} ${toString dmcfg.xserverArgs} "$@"
'';

Xsetup = pkgs.writeScript "Xsetup" ''
#!/bin/sh
preStart = ''
# Prior to Qt 5.9.2, there is a QML cache invalidation bug which sometimes
# strikes new Plasma 5 releases. If the QML cache is not invalidated, SDDM
# will segfault without explanation. We really tore our hair out for awhile
Expand All @@ -29,7 +27,10 @@ let
# will be regenerated, causing a small but perceptible delay when SDDM
# starts.
rm -fr /var/lib/sddm/.cache/sddm-greeter/qmlcache
'';

Xsetup = pkgs.writeScript "Xsetup" ''
#!/bin/sh
${cfg.setupScript}
'';

Expand Down Expand Up @@ -216,6 +217,8 @@ in
};

execCmd = "exec /run/current-system/sw/bin/sddm";

inherit preStart;
};

security.pam.services = {
Expand Down

0 comments on commit 17553ab

Please sign in to comment.