From 38009c349c340954af2caca1d4c77693b2682d53 Mon Sep 17 00:00:00 2001 From: Anund Date: Thu, 2 Dec 2021 20:26:44 +1100 Subject: [PATCH] mcomix: fix invalid .desktop icon name The postInstall step for this package copies an icon to the hicolor icon theme under the name mcomix3.png (${pname}). The applications mcomix.desktop references the icon by Icon=mcomix. The means the copied icon ends up with the "wrong" filename making lookup following the xdg standard break. This change updates the icon reference in the .desktop file to match what is currently being installed. (cherry picked from commit f524d70519b45e79c4bcee5055e6f5710f783779) --- pkgs/applications/graphics/mcomix3/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/mcomix3/default.nix b/pkgs/applications/graphics/mcomix3/default.nix index db777b3bd77d..30a056738975 100644 --- a/pkgs/applications/graphics/mcomix3/default.nix +++ b/pkgs/applications/graphics/mcomix3/default.nix @@ -47,7 +47,8 @@ python3.pkgs.buildPythonApplication rec { runHook preInstall substituteInPlace mime/*.desktop \ - --replace "Exec=mcomix" "Exec=mcomix3" + --replace "Exec=mcomix" "Exec=mcomix3" \ + --replace "Icon=mcomix" "Icon=${pname}" ${python3.executable} installer.py --srcdir=mcomix --target=$libdir mv $libdir/mcomix/mcomixstarter.py $out/bin/${pname} mv $libdir/mcomix/comicthumb.py $out/bin/comicthumb