@@ -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