diff options
| author | Anund <anundm@gmail.com> | 2021-12-02 20:26:44 +1100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2021-12-02 15:37:42 +0000 |
| commit | 38009c349c340954af2caca1d4c77693b2682d53 (patch) | |
| tree | 3adac68725e6d0d59ab7cef3ecdcd391fbf4ec58 | |
| parent | Merge pull request #148275 from NixOS/backport-148245-to-release-21.11 (diff) | |
| download | nixpkgs-38009c349c340954af2caca1d4c77693b2682d53.tar.gz | |
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)
| -rw-r--r-- | pkgs/applications/graphics/mcomix3/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
