-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardcoded icon path in launcher for GNU/Linux systems #308
Comments
Aye this has annoyed me too - will do. |
Reading up on this, is there no way to use this without installing an icon in an OS directory? We are not packaging Komodo for individual linux distro's atm, which means Komodo comes with all its dependencies and doesn't "infect" directories outside of its install and profile directories. It seems to me that's a problem with defining an icon that can be picked up by icon themes while still being able to fall back on the default, unless Komodo extracts its icon to the OS icon dir, which simply isnt feasible unless we package Komodo for individual distro's. |
Well, your chosen icon path allows for both a global/local installation into Reading the paragraph in http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html about the icon lookup procedure it occured to me However for some reason the preferred paths are The ´´hicolor´´ theme is standardised by freedesktop.org and AFAIK each and every icon theme coming with whatever distro inherits from it. It's the standard fallback theme. TL;DR
|
One more argument in favour of "dehardcoding": Currently the hardcoded icon line Whenever an icon bigger than that is needed (e.g. GNOME Shell overview, HiDPI screens) the icon will appear blurry. However you do provide icon in various sizes from as small as 16x16 up to 256x256 (which remain unused) so this could be solved. By changing the icon line to It's specified this way in the The |
I'll try experimenting with this, but if the install directory itself cannot be used as a fallback then this is a no-go at least until we do distro specific packages. |
Hi,
currently the icon path specified in the created .desktop launcher file is set to:
Icon=%s/share/icons/komodo48.png
This prevents icon theming without editing the launcher file.
I'd like to ask you to change the icon location as well as the icon path line in the launcher according to the freedesktop.org standards.
Please find more info here:
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
https://github.com/Foggalong/hardcode-fixer/wiki/What,-Why-&-How
According to the above resources standard icon locations are:
/usr/share/icons/hicolor/[size]/apps/[icon name]
~/.local/share/icons/hicolor/[size]/apps/[icon name]
or alernatively:
/usr/share/pixmaps/[icon name]
The corresponding standard icon line in the .desktop launcher is:
Icon=[icon name]
(without full path, without file extension)Cf. this example
.desktop
launcher presented in the freedesktop.org documentation.for instance
Icon=komodo
(for an icon
komodo.svg
orkomodo.png
stored in standard locationCould you please install the icon to one of those locations and adjust the icon path in the .desktop file accordingly?
The text was updated successfully, but these errors were encountered: