diff options
author | Ian M. Jones <ian@ianmjones.com> | 2022-10-21 00:49:00 +0100 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2022-10-24 10:03:13 +0800 |
commit | 90eb7cc0aaf1b1c0ce40da6e0d6c4912a5aa7382 (patch) | |
tree | 2106c73a8a3ccf6535cd9ff20c41b6db0beac16e /pkgs | |
parent | afd4752a3812a30f21adcc909484dd677e53b849 (diff) |
libreoffice: fix *.desktop files Exec commands
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/office/libreoffice/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix index 5b8ad73b257b1..4c3a4bd988442 100644 --- a/pkgs/applications/office/libreoffice/default.nix +++ b/pkgs/applications/office/libreoffice/default.nix @@ -364,6 +364,11 @@ in ln -s $out/bin/soffice $out/bin/libreoffice ln -s $out/lib/libreoffice/share/xdg $out/share/applications + for f in $out/share/applications/*.desktop; do + substituteInPlace "$f" \ + --replace "Exec=libreoffice${major}.${minor}" "Exec=libreoffice" + done + cp -r sysui/desktop/icons "$out/share" sed -re 's@Icon=libreoffice(dev)?[0-9.]*-?@Icon=@' -i "$out/share/applications/"*.desktop |