gnome-maps: fix broken .desktop file (#353003)

This commit is contained in:
Aleksana 2024-11-03 11:52:09 +08:00 committed by GitHub
commit 35d36e9a94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,6 @@
meson,
ninja,
gettext,
python3,
pkg-config,
gnome,
glib,
@ -75,8 +74,8 @@ stdenv.mkDerivation (finalAttrs: {
# entry point to the wrapped binary we get back to a wrapped
# binary.
substituteInPlace "data/org.gnome.Maps.service.in" \
--replace "Exec=@pkgdatadir@/@app-id@" \
"Exec=$out/bin/gnome-maps"
--replace-fail "Exec=@pkgdatadir@/@app-id@" \
"Exec=$out/bin/gnome-maps"
'';
preCheck = ''
@ -97,6 +96,12 @@ stdenv.mkDerivation (finalAttrs: {
rm $out/lib/gnome-maps/libgnome-maps.so.0
'';
preFixup = ''
substituteInPlace "$out/share/applications/org.gnome.Maps.desktop" \
--replace-fail "Exec=gapplication launch org.gnome.Maps" \
"Exec=gnome-maps"
'';
passthru = {
updateScript = gnome.updateScript { packageName = "gnome-maps"; };
};