i-nex / I-Nex

System information tool written in gambas3, python, bash
http://i-nex.linux.pl/
174 stars 24 forks source link

Unhardcode icon path in launcher + use 256px app icon #78

Closed palob closed 4 years ago

palob commented 7 years ago

This enables icon theming and makes I-Nex use the bigger 256px icon.

Since your icon is already installed to ../share/pixmaps, a location compliant with freedesktop.org standards you don't need to specify the full path or the file type extension. It will be found anyway.

Cf. this example .desktop launcher.

According to the standard (which all FLOSS desktop environments I know support) you can even make I-Nex dynamically (depending at which size it is requested) use all differently sized icons you provide by copying the files to the standardised hicolor theme locations .../share/icons/hicolor/<icon canvas size>¹/apps/i-nex.png (each icon with the same name) and Icon=i-nex in the .desktop launcher file.

¹ for instance 48x48