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.
This commit is contained in:
parent
cb703f1314
commit
6bf72482eb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue