summary refs log tree commit diff
path: root/pkgs/build-support/make-startupitem
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2017-07-06 00:44:41 +0200
committerBastian Köcher <git@kchr.de>2017-07-06 00:44:41 +0200
commit6bf72482eb2c0c5908af0395e616e80c1de7c8f9 (patch)
tree046ccf74857a6dfe019bcb5bb3ce173d9c4c7ed6 /pkgs/build-support/make-startupitem
parentcb703f1314987fe22a9a5fc3b468b7f311cc1ab7 (diff)
downloadnixpkgs-6bf72482eb2c0c5908af0395e616e80c1de7c8f9.tar
nixpkgs-6bf72482eb2c0c5908af0395e616e80c1de7c8f9.tar.gz
nixpkgs-6bf72482eb2c0c5908af0395e616e80c1de7c8f9.tar.bz2
nixpkgs-6bf72482eb2c0c5908af0395e616e80c1de7c8f9.tar.lz
nixpkgs-6bf72482eb2c0c5908af0395e616e80c1de7c8f9.tar.xz
nixpkgs-6bf72482eb2c0c5908af0395e616e80c1de7c8f9.tar.zst
nixpkgs-6bf72482eb2c0c5908af0395e616e80c1de7c8f9.zip
make-autostartitem: Use the right path for storing the desktop files
The freedesktop specification says that the autostart folder is located at $XDG_CONFIG_DIRS/autostart.
Nixos defines XDG_CONFIG_DIRS as /etc/xdg. So we need to copy the desktop files into the right folder
with make-startupitem.
Diffstat (limited to 'pkgs/build-support/make-startupitem')
-rw-r--r--pkgs/build-support/make-startupitem/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/make-startupitem/default.nix b/pkgs/build-support/make-startupitem/default.nix
index fad6f00d821..da1d4105c89 100644
--- a/pkgs/build-support/make-startupitem/default.nix
+++ b/pkgs/build-support/make-startupitem/default.nix
@@ -19,14 +19,14 @@ stdenv.mkDerivation {
   priority = 5;
 
   buildCommand = ''
-    mkdir -p $out/share/autostart
+    mkdir -p $out/etc/xdg/autostart
     target=${name}.desktop
     cp ${package}/share/applications/${srcPrefix}${name}.desktop $target
     chmod +rw $target
     echo "X-KDE-autostart-phase=${phase}" >> $target
     ${lib.optionalString (after != null) ''echo "${after}" >> $target''}
     ${lib.optionalString (condition != null) ''echo "${condition}" >> $target''}
-    cp $target $out/share/autostart
+    cp $target $out/etc/xdg/autostart
   '';
 
   # this will automatically put 'package' in the environment when you