Merge pull request #27160 from bkchr/makeautostartitem_fix
make-autostartitem: Use the right path for storing the desktop files
This commit is contained in:
commit
ce39a9c837
@ -19,14 +19,14 @@ stdenv.mkDerivation {
|
|||||||
priority = 5;
|
priority = 5;
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/share/autostart
|
mkdir -p $out/etc/xdg/autostart
|
||||||
target=${name}.desktop
|
target=${name}.desktop
|
||||||
cp ${package}/share/applications/${srcPrefix}${name}.desktop $target
|
cp ${package}/share/applications/${srcPrefix}${name}.desktop $target
|
||||||
chmod +rw $target
|
chmod +rw $target
|
||||||
echo "X-KDE-autostart-phase=${phase}" >> $target
|
echo "X-KDE-autostart-phase=${phase}" >> $target
|
||||||
${lib.optionalString (after != null) ''echo "${after}" >> $target''}
|
${lib.optionalString (after != null) ''echo "${after}" >> $target''}
|
||||||
${lib.optionalString (condition != null) ''echo "${condition}" >> $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
|
# this will automatically put 'package' in the environment when you
|
||||||
|
Loading…
x
Reference in New Issue
Block a user