git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/sddm: delete QML cache

Prior to Qt 5.9.2, there is a QML cache invalidation bug which causes SDDM to segfault when upgrading Plasma. See also: https://bugreports.qt.io/browse/QTBUG-62302

commitdae260034cad3ec5d644e798d6e6947f3074c9dc authorThomas Tuegel <ttuegel@mailbox.org> dateThu 19 Oct 2017, 07:09 (9 years ago) parentef4a6bd
1 file changed+11
nixos/modules/services/x11/display-managers/sddm.nix+11
nixos/modules/services/x11/display-managers/sddm.nix+11
@@ -19,6 +19,17 @@ let
1919
2020 Xsetup = pkgs.writeScript "Xsetup" ''
2121 #!/bin/sh
22+
23+ # Prior to Qt 5.9.2, there is a QML cache invalidation bug which sometimes
24+ # strikes new Plasma 5 releases. If the QML cache is not invalidated, SDDM
25+ # will segfault without explanation. We really tore our hair out for awhile
26+ # before finding the bug:
27+ # https://bugreports.qt.io/browse/QTBUG-62302
28+ # We work around the problem by deleting the QML cache before startup. It
29+ # will be regenerated, causing a small but perceptible delay when SDDM
30+ # starts.
31+ rm -fr /var/lib/sddm/.cache/sddm-greeter/qmlcache
32+
2233 ${cfg.setupScript}
2334 '';
2435