diff --git a/pkgs/additional/gpodder-adaptive/default.nix b/pkgs/additional/gpodder-adaptive/default.nix index 5bcb09917..c5dcbbee8 100644 --- a/pkgs/additional/gpodder-adaptive/default.nix +++ b/pkgs/additional/gpodder-adaptive/default.nix @@ -30,6 +30,11 @@ self = gpodder.overridePythonAttrs (upstream: rec { "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 ++ [ libhandy ]; diff --git a/pkgs/additional/gpodder-configured/default.nix b/pkgs/additional/gpodder-configured/default.nix index 93310d946..17ac41175 100644 --- a/pkgs/additional/gpodder-configured/default.nix +++ b/pkgs/additional/gpodder-configured/default.nix @@ -36,9 +36,10 @@ in --run "$out/bin/gpo import ~/.config/gpodderFeeds.opml || true" \ # 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) 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 = {