mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
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.
This commit is contained in:
parent
6cdb3ec438
commit
f524d70519
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user