diff --git a/pkgs/by-name/eu/eudic/package.nix b/pkgs/by-name/eu/eudic/package.nix index b72556d3badb..b0bd0e07eec3 100644 --- a/pkgs/by-name/eu/eudic/package.nix +++ b/pkgs/by-name/eu/eudic/package.nix @@ -4,7 +4,6 @@ autoPatchelfHook, makeWrapper, lib, - copyDesktopItems, libnotify, libX11, libXScrnSaver, @@ -71,11 +70,17 @@ stdenv.mkDerivation (finalAttrs: { mkdir -p $out cp -r usr/* $out/ - makeWrapper $out/share/eusoft-eudic/eudic $out/bin/eudic + makeWrapper $out/share/eusoft-eudic/eudic $out/bin/eudic \ + --inherit-argv0 runHook postInstall ''; + postFixup = '' + substituteInPlace $out/share/applications/eusoft-eudic.desktop \ + --replace-fail '/usr/share/eusoft-eudic/AppRun' 'eudic' + ''; + meta = { description = "Authoritative English Dictionary Software Essential Tools for English Learners"; homepage = "https://www.eudic.net/v4/en/app/eudic";