summary refs log tree commit diff
diff options
context:
space:
mode:
authorTillerino <Tillerino@users.noreply.github.com>2023-06-26 20:33:58 +0200
committerGitHub <noreply@github.com>2023-06-26 20:33:58 +0200
commit89a9b36d69b7ee03fbf4e9275431559ad083c89d (patch)
treea82d9c27b5cd540007a37a044fc60f8df16dfae1
parentba6c2290374dbf1f9a10b22e71a13ad08564d5f9 (diff)
downloadnixpkgs-89a9b36d69b7ee03fbf4e9275431559ad083c89d.tar
nixpkgs-89a9b36d69b7ee03fbf4e9275431559ad083c89d.tar.gz
nixpkgs-89a9b36d69b7ee03fbf4e9275431559ad083c89d.tar.bz2
nixpkgs-89a9b36d69b7ee03fbf4e9275431559ad083c89d.tar.lz
nixpkgs-89a9b36d69b7ee03fbf4e9275431559ad083c89d.tar.xz
nixpkgs-89a9b36d69b7ee03fbf4e9275431559ad083c89d.tar.zst
nixpkgs-89a9b36d69b7ee03fbf4e9275431559ad083c89d.zip
jetbrains: fix application icon (#239416)
My Desktop doesn't recognize the icon in ~/.local/share/pixmaps which is
how the icon would have to be found when doing a user profile install.

For me, it's hard to find information on this, but it seems like
share/pixmaps is something old and the share/icons location should be
used instead:

https://www.reddit.com/r/linuxquestions/comments/htg6c/comment/c1yfi0a/

https://github.com/spyder-ide/spyder/issues/6188

https://github.com/FreeSpacenav/spnavcfg/issues/9

In this PR we _add_ the icons location so that both are available for
compatibility.
-rw-r--r--pkgs/applications/editors/jetbrains/linux.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/editors/jetbrains/linux.nix b/pkgs/applications/editors/jetbrains/linux.nix
index 117a261e957..26929ffd71a 100644
--- a/pkgs/applications/editors/jetbrains/linux.nix
+++ b/pkgs/applications/editors/jetbrains/linux.nix
@@ -61,10 +61,11 @@ with stdenv; lib.makeOverridable mkDerivation (rec {
   installPhase = ''
     runHook preInstall
 
-    mkdir -p $out/{bin,$pname,share/pixmaps,libexec/${pname}}
+    mkdir -p $out/{bin,$pname,share/pixmaps,libexec/${pname},share/icons/hicolor/scalable/apps}
     cp -a . $out/$pname
     [[ -f $out/$pname/bin/${loName}.png ]] && ln -s $out/$pname/bin/${loName}.png $out/share/pixmaps/${pname}.png
-    [[ -f $out/$pname/bin/${loName}.svg ]] && ln -s $out/$pname/bin/${loName}.svg $out/share/pixmaps/${pname}.svg
+    [[ -f $out/$pname/bin/${loName}.svg ]] && ln -s $out/$pname/bin/${loName}.svg $out/share/pixmaps/${pname}.svg \
+      && ln -s $out/$pname/bin/${loName}.svg $out/share/icons/hicolor/scalable/apps/${pname}.svg
     mv bin/fsnotifier* $out/libexec/${pname}/.
 
     jdk=${jdk.home}