logseq: make desktop icon themable

This commit is contained in:
Joshua Trees 2023-03-28 21:50:12 +02:00
parent 2859ec6f8f
commit 528607c042

View File

@ -40,9 +40,12 @@ stdenv.mkDerivation rec {
rm -rf $out/share/${pname}/resources/app/node_modules/dugite/git
chmod -w $out/share/${pname}/resources/app/node_modules/dugite
mkdir -p $out/share/pixmaps
ln -s $out/share/${pname}/resources/app/icons/logseq.png $out/share/pixmaps/${pname}.png
substituteInPlace $out/share/applications/${pname}.desktop \
--replace Exec=Logseq Exec=${pname} \
--replace Icon=Logseq Icon=$out/share/${pname}/resources/app/icons/logseq.png
--replace Icon=Logseq Icon=${pname}
runHook postInstall
'';