diff options
author | Mathias Sven <mathiassven2@hotmail.com> | 2023-04-11 16:49:46 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-04-13 19:42:46 +0200 |
commit | 80bdfe66c454539710bd55bcc936d1f9fea1475f (patch) | |
tree | 25d9a2d8bf342a38dcbe866a6bdaf3fee31b20af | |
parent | a1663fbdf63c3c5e3c067f6403eaf97afe9ef070 (diff) | |
download | nixpkgs-80bdfe66c454539710bd55bcc936d1f9fea1475f.tar nixpkgs-80bdfe66c454539710bd55bcc936d1f9fea1475f.tar.gz nixpkgs-80bdfe66c454539710bd55bcc936d1f9fea1475f.tar.bz2 nixpkgs-80bdfe66c454539710bd55bcc936d1f9fea1475f.tar.lz nixpkgs-80bdfe66c454539710bd55bcc936d1f9fea1475f.tar.xz nixpkgs-80bdfe66c454539710bd55bcc936d1f9fea1475f.tar.zst nixpkgs-80bdfe66c454539710bd55bcc936d1f9fea1475f.zip |
qnotero: fix desktop file
Signed-off-by: Mathias Sven <mathiassven2@hotmail.com> Co-authored-by: Johannes Jöns <34899572+jopejoe1@users.noreply.github.com>
-rw-r--r-- | pkgs/applications/office/qnotero/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/applications/office/qnotero/default.nix b/pkgs/applications/office/qnotero/default.nix index fbfe11a2c94..e90184b5221 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; |