summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2017-10-19 07:18:36 -0500
committerThomas Tuegel <ttuegel@mailbox.org>2017-10-19 07:18:36 -0500
commitf7de0da188781aea2a4bf2b17e1fbaf8d65925da (patch)
tree0a3e9c8a99eefdc2bcf8cd0e89c2c2ec77fe7f94 /nixos
parent0b409b37d4aae15c69ee30f0fb2e905f3a437958 (diff)
parentdae260034cad3ec5d644e798d6e6947f3074c9dc (diff)
downloadnixpkgs-f7de0da188781aea2a4bf2b17e1fbaf8d65925da.tar
nixpkgs-f7de0da188781aea2a4bf2b17e1fbaf8d65925da.tar.gz
nixpkgs-f7de0da188781aea2a4bf2b17e1fbaf8d65925da.tar.bz2
nixpkgs-f7de0da188781aea2a4bf2b17e1fbaf8d65925da.tar.lz
nixpkgs-f7de0da188781aea2a4bf2b17e1fbaf8d65925da.tar.xz
nixpkgs-f7de0da188781aea2a4bf2b17e1fbaf8d65925da.tar.zst
nixpkgs-f7de0da188781aea2a4bf2b17e1fbaf8d65925da.zip
Merge branch 'pull/30305'
plasma5: 5.10.5 -> 5.11.1
sddm: 0.15.0 -> 0.16.0
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/display-managers/sddm.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/sddm.nix b/nixos/modules/services/x11/display-managers/sddm.nix
index e6cc02e4d49..facaea131ae 100644
--- a/nixos/modules/services/x11/display-managers/sddm.nix
+++ b/nixos/modules/services/x11/display-managers/sddm.nix
@@ -19,6 +19,17 @@ let
 
   Xsetup = pkgs.writeScript "Xsetup" ''
     #!/bin/sh
+
+    # 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
+    # before finding the bug:
+    # https://bugreports.qt.io/browse/QTBUG-62302
+    # We work around the problem by deleting the QML cache before startup. It
+    # will be regenerated, causing a small but perceptible delay when SDDM
+    # starts.
+    rm -fr /var/lib/sddm/.cache/sddm-greeter/qmlcache
+
     ${cfg.setupScript}
   '';