diff --git a/pkgs/applications/misc/electron-cash/default.nix b/pkgs/applications/misc/electron-cash/default.nix index e9854ac3ef94..89579d62a4f9 100644 --- a/pkgs/applications/misc/electron-cash/default.nix +++ b/pkgs/applications/misc/electron-cash/default.nix @@ -61,11 +61,6 @@ python3Packages.buildPythonApplication rec { --replace "(share_dir" "(\"share\"" ''; - postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' - substituteInPlace $out/share/applications/electron-cash.desktop \ - --replace "Exec=electron-cash" "Exec=$out/bin/electron-cash" - ''; - # If secp256k1 wasn't added to the library path, the following warning is given: # # Electron Cash was unable to find the secp256k1 library on this system. diff --git a/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix b/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix index 98b056bedd3b..6fefb5016a1d 100644 --- a/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix +++ b/pkgs/applications/networking/instant-messengers/signal-desktop/generic.nix @@ -236,7 +236,7 @@ stdenv.mkDerivation rec { # Fix the desktop link substituteInPlace $out/share/applications/${pname}.desktop \ - --replace-fail "/opt/${dir}/${pname}" $out/bin/${pname} \ + --replace-fail "/opt/${dir}/${pname}" ${meta.mainProgram} \ --replace-fail "StartupWMClass=Signal" "StartupWMClass=signal" # Note: The following path contains bundled libraries: diff --git a/pkgs/by-name/en/entangle/package.nix b/pkgs/by-name/en/entangle/package.nix index fd5f3873df78..dab4bd89fe73 100644 --- a/pkgs/by-name/en/entangle/package.nix +++ b/pkgs/by-name/en/entangle/package.nix @@ -120,11 +120,6 @@ stdenv.mkDerivation (finalAttrs: { -e "/gtk-update-icon-cache/d" ''; - postInstall = '' - substituteInPlace "$out/share/applications/org.entangle_photo.Manager.desktop" \ - --replace "Exec=entangle" "Exec=$out/bin/entangle" - ''; - meta = { description = "Tethered camera control and capture"; longDescription = '' diff --git a/pkgs/by-name/ga/gamepad-tool/package.nix b/pkgs/by-name/ga/gamepad-tool/package.nix index 4e7b03bdb4af..3ca6cabddf62 100644 --- a/pkgs/by-name/ga/gamepad-tool/package.nix +++ b/pkgs/by-name/ga/gamepad-tool/package.nix @@ -31,8 +31,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { cp -r usr/share/icons $out/share/icons substitute usr/share/applications/gamepad-tool-debian.desktop \ $out/share/applications/gamepad-tool.desktop \ - --replace "Exec=gamepad-tool" "Exec=$out/bin/gamepad-tool" \ - --replace "/usr/share/icons/hicolor/256x256/apps/gamepad-tool.png" "$out/share/icons/hicolor/256x256/apps/gamepad-tool.png" + --replace-fail "/usr/share/icons/hicolor/256x256/apps/gamepad-tool.png" "gamepad-tool" runHook postInstall ''; diff --git a/pkgs/by-name/gn/gnome-control-center/package.nix b/pkgs/by-name/gn/gnome-control-center/package.nix index 6d10ce16a8db..9600b529c888 100644 --- a/pkgs/by-name/gn/gnome-control-center/package.nix +++ b/pkgs/by-name/gn/gnome-control-center/package.nix @@ -200,9 +200,6 @@ stdenv.mkDerivation (finalAttrs: { # WM keyboard shortcuts --prefix XDG_DATA_DIRS : "${mutter}/share" ) - for i in $out/share/applications/*; do - substituteInPlace $i --replace "Exec=gnome-control-center" "Exec=$out/bin/gnome-control-center" - done ''; separateDebugInfo = true; diff --git a/pkgs/by-name/gn/gnome-maps/package.nix b/pkgs/by-name/gn/gnome-maps/package.nix index 233c0f2296ee..27eee47cbf61 100644 --- a/pkgs/by-name/gn/gnome-maps/package.nix +++ b/pkgs/by-name/gn/gnome-maps/package.nix @@ -68,16 +68,6 @@ stdenv.mkDerivation (finalAttrs: { libsoup_3 ]; - postPatch = '' - # The .service file isn't wrapped with the correct environment - # so misses GIR files when started. By re-pointing from the gjs - # entry point to the wrapped binary we get back to a wrapped - # binary. - substituteInPlace "data/org.gnome.Maps.service.in" \ - --replace-fail "Exec=@pkgdatadir@/@app-id@" \ - "Exec=$out/bin/gnome-maps" - ''; - preCheck = '' # “time.js” included by “timeTest” and “translationsTest” depends on “org.gnome.desktop.interface” schema. export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:$XDG_DATA_DIRS" diff --git a/pkgs/by-name/gn/gnome-panel/package.nix b/pkgs/by-name/gn/gnome-panel/package.nix index 5ec2383c826b..80c49fda4017 100644 --- a/pkgs/by-name/gn/gnome-panel/package.nix +++ b/pkgs/by-name/gn/gnome-panel/package.nix @@ -45,16 +45,6 @@ stdenv.mkDerivation (finalAttrs: { ./modulesdir-env-var.patch ]; - # make .desktop Exec absolute - postPatch = '' - patch -p0 <