qnotero: fix desktop file

Signed-off-by: Mathias Sven <mathiassven2@hotmail.com>
Co-authored-by: Johannes Jöns <34899572+jopejoe1@users.noreply.github.com>
This commit is contained in:
Mathias Sven
2023-04-13 19:42:46 +02:00
committed by Bjørn Forsman
co-authored by Johannes Jöns
parent a1663fbdf6
commit 80bdfe66c4
@@ -26,6 +26,18 @@ python3Packages.buildPythonPackage rec {
wrapQtApp "$out"/bin/qnotero
'';
postInstall = ''
mkdir $out/share
mv $out/usr/share/applications $out/share/applications
substituteInPlace $out/share/applications/qnotero.desktop \
--replace "Icon=/usr/share/qnotero/resources/light/qnotero.png" "Icon=qnotero"
mkdir -p $out/share/icons/hicolor/64x64/apps
ln -s $out/usr/share/qnotero/resources/light/qnotero.png \
$out/share/icons/hicolor/64x64/apps/qnotero.png
'';
# no tests executed
doCheck = false;