diff options
author | Bastian Köcher <git@kchr.de> | 2017-07-06 00:44:41 +0200 |
---|---|---|
committer | Bastian Köcher <git@kchr.de> | 2017-07-06 00:44:41 +0200 |
commit | 6bf72482eb2c0c5908af0395e616e80c1de7c8f9 (patch) | |
tree | 046ccf74857a6dfe019bcb5bb3ce173d9c4c7ed6 /pkgs/build-support/make-startupitem/default.nix | |
parent | cb703f1314987fe22a9a5fc3b468b7f311cc1ab7 (diff) |
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/default.nix')
-rw-r--r-- | pkgs/build-support/make-startupitem/default.nix | 4 |
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 fad6f00d82116..da1d4105c89fb 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 |