diff --git a/pkgs/applications/display-managers/sddm/default.nix b/pkgs/applications/display-managers/sddm/default.nix index 5f8b13d29059..10bbaed9bbe9 100644 --- a/pkgs/applications/display-managers/sddm/default.nix +++ b/pkgs/applications/display-managers/sddm/default.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { sha256 = "09amr61srvl52nvxlqqgs9fzn33pc2gjv5hc83gxx43x6q2j19gg"; }; + patches = [ ./sddm-ignore-config-mtime.patch ]; + nativeBuildInputs = [ cmake pkgconfig qttools ]; buildInputs = [ libxcb libpthreadstubs libXdmcp libXau qtbase qtdeclarative pam systemd ]; diff --git a/pkgs/applications/display-managers/sddm/sddm-ignore-config-mtime.patch b/pkgs/applications/display-managers/sddm/sddm-ignore-config-mtime.patch new file mode 100644 index 000000000000..9edd9a7b5382 --- /dev/null +++ b/pkgs/applications/display-managers/sddm/sddm-ignore-config-mtime.patch @@ -0,0 +1,16 @@ +diff --git a/src/common/ConfigReader.cpp b/src/common/ConfigReader.cpp +index 6618455..5356e76 100644 +--- a/src/common/ConfigReader.cpp ++++ b/src/common/ConfigReader.cpp +@@ -136,11 +136,6 @@ namespace SDDM { + QString currentSection = QStringLiteral(IMPLICIT_SECTION); + + QFile in(m_path); +- QDateTime modificationTime = QFileInfo(in).lastModified(); +- if (modificationTime <= m_fileModificationTime) { +- return; +- } +- m_fileModificationTime = modificationTime; + + in.open(QIODevice::ReadOnly); + while (!in.atEnd()) {