skypeforlinux: remove nix store path references in desktop files

Because desktop files can be copied to $HOME/.config/autostart, and
eventually the Nix store paths they reference will be garbage collected
and break.
This commit is contained in:
Bjørn Forsman 2022-10-29 23:39:29 +02:00
parent 7408ad5e14
commit f627f3a2b5

View File

@ -110,11 +110,11 @@ in stdenv.mkDerivation {
# Fix the desktop link
substituteInPlace $out/share/applications/skypeforlinux.desktop \
--replace /usr/bin/ $out/bin/
--replace /usr/bin/ ""
substituteInPlace $out/share/applications/skypeforlinux-share.desktop \
--replace /usr/bin/ $out/bin/
--replace /usr/bin/ ""
substituteInPlace $out/share/kservices5/ServiceMenus/skypeforlinux.desktop \
--replace /usr/bin/ $out/bin/
--replace /usr/bin/ ""
'';
meta = with lib; {