diff options
Diffstat (limited to 'pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch')
-rw-r--r-- | pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch b/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch new file mode 100644 index 00000000000..e924207054d --- /dev/null +++ b/pkgs/desktops/plasma-5.2/plasma-desktop/plasma-desktop-zoneinfo.patch @@ -0,0 +1,18 @@ +diff --git a/kcms/dateandtime/helper.cpp b/kcms/dateandtime/helper.cpp +index fc4a6b9..7b64d05 100644 +--- a/kcms/dateandtime/helper.cpp ++++ b/kcms/dateandtime/helper.cpp +@@ -181,7 +181,12 @@ int ClockHelper::tz( const QString& selectedzone ) + + val = selectedzone; + #else +- QString tz = "/usr/share/zoneinfo/" + selectedzone; ++ // NixOS-specific path ++ QString tz = "/etc/zoneinfo/" + selectedzone; ++ if (!QFile::exists(tz)) { ++ // Standard Linux path ++ tz = "/usr/share/zoneinfo/" + selectedzone; ++ } + + if (QFile::exists(tz)) { // make sure the new TZ really exists + QFile::remove("/etc/localtime"); |