From 80bdfe66c454539710bd55bcc936d1f9fea1475f Mon Sep 17 00:00:00 2001 From: Mathias Sven Date: Tue, 11 Apr 2023 16:49:46 +0100 Subject: [PATCH] qnotero: fix desktop file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathias Sven Co-authored-by: Johannes Jöns <34899572+jopejoe1@users.noreply.github.com> --- pkgs/applications/office/qnotero/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/applications/office/qnotero/default.nix b/pkgs/applications/office/qnotero/default.nix index fbfe11a2c947..e90184b52212 100644 --- a/pkgs/applications/office/qnotero/default.nix +++ b/pkgs/applications/office/qnotero/default.nix @@ -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;