gpodder: fix .desktop file(s)
This commit is contained in:
@@ -30,6 +30,11 @@ self = gpodder.overridePythonAttrs (upstream: rec {
|
|||||||
"share/dbus-1/services/org.gpodder.service"
|
"share/dbus-1/services/org.gpodder.service"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
substituteInPlace $out/share/applications/gpodder-url-handler.desktop \
|
||||||
|
--replace-fail 'Exec=/bin/gpodder' 'Exec=gpodder'
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = upstream.buildInputs ++ [
|
buildInputs = upstream.buildInputs ++ [
|
||||||
libhandy
|
libhandy
|
||||||
];
|
];
|
||||||
|
@@ -36,9 +36,10 @@ in
|
|||||||
--run "$out/bin/gpo import ~/.config/gpodderFeeds.opml || true" \
|
--run "$out/bin/gpo import ~/.config/gpodderFeeds.opml || true" \
|
||||||
|
|
||||||
# fix up the .desktop file to invoke our wrapped application
|
# fix up the .desktop file to invoke our wrapped application
|
||||||
|
# (rather, invoke `gpodder` by PATH, which could be this, or an outer layer of wrapping)
|
||||||
orig_desktop=$(readlink $out/share/applications/gpodder.desktop)
|
orig_desktop=$(readlink $out/share/applications/gpodder.desktop)
|
||||||
unlink $out/share/applications/gpodder.desktop
|
unlink $out/share/applications/gpodder.desktop
|
||||||
sed "s:Exec=.*:Exec=$out/bin/gpodder-configured:" $orig_desktop > $out/share/applications/gpodder.desktop
|
sed "s:Exec=.*/gpodder:Exec=gpodder:" $orig_desktop > $out/share/applications/gpodder.desktop
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
Reference in New Issue
Block a user