The Question
I want to know if there is a way to provide multiple icon choices in desktop files. For example, in the desktop file I have for android studio, this is the icon line:
Icon=/opt/android-studio/bin/studio.png
it works fine BUT the problem is that I want the icon to be whatever the icon theme I'm using is providing, instead of being the same old "studio.png" all the time. I know I can change that to something like:
Icon=androidstudio
and as you know, it works fine with icon themes that provide the android studio icon by that name i.e. "androidstudio". The problem is that different icon themes provide icons with different names for android studio, including:
- com.google.AndroidStudio
- android-studio
- androidstudio
- studio
- etc.
Is there a way to put all these names in the desktop file so it can use whichever the icon theme provides?
What I've tried
Based on what I'd seen in some desktop files, I tried to separate different values (i.e. icon names) with semi-colons, but didn't work:
Icon=com.google.AndroidStudio;studio;androidstudio;
What I've already read: