about summary refs log tree commit diff
path: root/pkgs/desktops/plasma-5.2
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/plasma-5.2')
-rw-r--r--pkgs/desktops/plasma-5.2/default.nix6
-rw-r--r--pkgs/desktops/plasma-5.2/startkde/startkde.in14
2 files changed, 8 insertions, 12 deletions
diff --git a/pkgs/desktops/plasma-5.2/default.nix b/pkgs/desktops/plasma-5.2/default.nix
index 3b4aa6527355..7a7a48a4d82d 100644
--- a/pkgs/desktops/plasma-5.2/default.nix
+++ b/pkgs/desktops/plasma-5.2/default.nix
@@ -38,7 +38,7 @@ let
     {
       LibBlueDevil = pkgs.libbluedevil;
       PolkitQt5-1 = pkgs.polkit_qt5.override { inherit qt5; };
-      PopplerQt5 = (pkgs.poppler.override { inherit qt5; }).poppler_qt5;
+      PopplerQt5 = pkgs.poppler_qt5.override { inherit qt5; };
     } //
     # packages from nixpkgs
     (with pkgs;
@@ -132,6 +132,10 @@ let
       plasma-workspace = with pkgs; super.plasma-workspace // {
         buildInputs = with xlibs;
           super.plasma-workspace.buildInputs ++ [ libSM libXcursor pam ];
+        postPatch = ''
+          substituteInPlace startkde/kstartupconfig/kstartupconfig.cpp \
+            --replace kdostartupconfig5 $out/bin/kdostartupconfig5
+        '';
         postInstall = ''
           # We use a custom startkde script
           rm $out/bin/startkde
diff --git a/pkgs/desktops/plasma-5.2/startkde/startkde.in b/pkgs/desktops/plasma-5.2/startkde/startkde.in
index ff67ed769e2a..0693f1027817 100644
--- a/pkgs/desktops/plasma-5.2/startkde/startkde.in
+++ b/pkgs/desktops/plasma-5.2/startkde/startkde.in
@@ -63,15 +63,8 @@ fi
 # * Then ksmserver is started which takes control of the rest of the startup sequence
 
 # We need to create config folder so we can write startupconfigkeys
-if [  ${XDG_CONFIG_HOME} ]; then
-  configDir=$XDG_CONFIG_HOME;
-else
-  # This is the default
-  # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
-  configDir=${HOME}/.config;
-fi
-
-mkdir -p $configDir
+configDir=$(@qt5@/bin/qtpaths --writable-path GenericConfigLocation)
+mkdir -p "$configDir"
 
 # This is basically setting defaults so we can use them with kstartupconfig5
 cat @startupconfigkeys@ >$configDir/startupconfigkeys
@@ -177,8 +170,7 @@ fi
 # For anything else (that doesn't set env vars, or that needs a window manager),
 # better use the Autostart folder.
 
-# TODO: Use GenericConfigLocation once we depend on Qt 5.4
-scriptpath=`@qt5@/bin/qtpaths --paths ConfigLocation | tr ':' '\n' | @gnused@/bin/sed 's,$,/plasma-workspace,g'`
+scriptpath=$(@qt5@/bin/qtpaths --paths GenericConfigLocation | tr ':' '\n' | @gnused@/bin/sed 's,$,/plasma-workspace,g')
 
 # Add /env/ to the directory to locate the scripts to be sourced
 for prefix in `echo $scriptpath`; do