gnome-panel: remove absolute path in desktop entry

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-10-14 21:14:00 +02:00
parent 8816be7bda
commit d769a8defe
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951
2 changed files with 2 additions and 13 deletions

View File

@ -45,16 +45,6 @@ stdenv.mkDerivation (finalAttrs: {
./modulesdir-env-var.patch
];
# make .desktop Exec absolute
postPatch = ''
patch -p0 <<END_PATCH
+++ gnome-panel/gnome-panel.desktop.in
@@ -7 +7 @@
-Exec=gnome-panel
+Exec=$out/bin/gnome-panel
END_PATCH
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${gnome-menus}/share"

View File

@ -54,9 +54,8 @@ stdenv.mkDerivation {
rm $out/share/applications/gnome-panel.desktop
substitute ${gnome-panel}/share/applications/gnome-panel.desktop \
$out/share/applications/gnome-panel.desktop --replace \
"Exec=${gnome-panel}/bin/gnome-panel" "Exec=$out/bin/gnome-panel"
ln -s ${gnome-panel}/share/applications/gnome-panel.desktop \
$out/share/applications/gnome-panel.desktop
runHook postInstall
'';