joplin-desktop: make Icon= more bitrot resistant

Replace Icon=<nix_store_path_to_icon> with Icon=<icon_name> so that the
desktop file doesn't break when placed in ~/.config/autostart and after
a system upgrade + garbage collect cycle.
This commit is contained in:
Bjørn Forsman 2022-11-12 11:14:05 +01:00
parent 801d535fab
commit 0baed3d787

View file

@ -55,7 +55,7 @@ let
install -Dm444 ${appimageContents}/@joplinapp-desktop.png -t $out/share/pixmaps install -Dm444 ${appimageContents}/@joplinapp-desktop.png -t $out/share/pixmaps
substituteInPlace $out/share/applications/@joplinapp-desktop.desktop \ substituteInPlace $out/share/applications/@joplinapp-desktop.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}' \ --replace 'Exec=AppRun' 'Exec=${pname}' \
--replace 'Icon=joplin' "Icon=$out/share/pixmaps/@joplinapp-desktop.png" --replace 'Icon=joplin' "Icon=@joplinapp-desktop"
''; '';
}; };