Opened 8 years ago

Closed 8 years ago

Last modified 2 years ago

#11954 closed enhancement (fixed)

Install application icons per Icon Theme Specification

Reported by: sebastic Owned by: bastiK
Priority: normal Milestone: 15.10
Component: Ubuntu package Version:
Keywords: linux desktop icon Cc: sebastic


How to install applications icons as used for the Icon entry in .desktop files is documented in the Icon Theme Specification - Installing Application Icons section:

So, you're an application author, and want to install application icons so that they work in the KDE and Gnome menus. Minimally you should install a 48x48 icon in the hicolor theme. This means installing a PNG file in $prefix/share/icons/hicolor/48x48/apps. Optionally you can install icons in different sizes. For example, installing a svg icon in $prefix/share/icons/hicolor/scalable/apps means most desktops will have one icon that works for all sizes. You might even want to install icons with a look that matches other well known themes so your application will fit in with some specific desktop environment.

The attached patch installs the josm icons available in the icons/ directory in /usr/share/icons/hicolor/*/apps following the Icon Theme Specification:

source:  images/logo.svg
testing: linux/tested/usr/share/icons/hicolor/scalable/apps/josm.svg
latest:  linux/latest/usr/share/icons/hicolor/scalable/apps/josm-latest.svg
source:  images/logo_48x48x32.png
testing: linux/tested/usr/share/icons/hicolor/48x48/apps/josm.png
latest:  linux/latest/usr/share/icons/hicolor/48x48/apps/josm-latest.png
source:  images/logo_32x32x32.png
testing: linux/tested/usr/share/icons/hicolor/32x32/apps/josm.png
latest:  linux/latest/usr/share/icons/hicolor/32x32/apps/josm-latest.png
source:  images/logo_16x16x32.png
testing: linux/tested/usr/share/icons/hicolor/16x16/apps/josm.png
latest:  linux/latest/usr/share/icons/hicolor/16x16/apps/josm-latest.png

The PNG icons are installed for old desktops that don't support SVG.

Attachments (1)

josm-icon-theme-spec.patch (34.2 KB) - added by sebastic 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by sebastic

Attachment: josm-icon-theme-spec.patch added

comment:1 Changed 8 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 8845/josm:

fix #11954 - Install application icons per Icon Theme Specification (patch by sebastic)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain bastiK.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.