Icon / mime association..

Rodney Dawes dobey at novell.com
Tue Oct 17 17:49:34 EEST 2006

On Mon, 2006-10-16 at 19:46 +0300, Kustaa Nyholm wrote:
> My extensions (*.jdwg) are now correctly associated by installer with my mime 
> types (application/vnd.jdwg) and my jDraft.desktop shows the icon I specified 
> for my application and my documents also show the icon I want. The application 
> launches from .desktop file or the documents. Everything is great, well almost...
> ..the actual application executable (which is a shell script with embedded 
> executable jar file) only shows the standard (I presume) icon for shell scripts.

A shell script is still a shell script. Shell scripts do not support
resource embedding as win32 binaries do. You can't change the icon to
some specific icon only for that script, automatically. You can set it
as a user in nautilus by setting a custom icon for the file, though.
There is some work being done, however, to allow icon resources in
win32 binaries to be used as the icons for those programs in nautilus,
for things that will work under WINE or similar. Linux ELF does not
have native resource embedding, and there is currently no standard
method for doing such embedding in the binary.

As an example, open /usr/bin in your file manager, and notice how
every single app has the same icon for exectuable applications. You'll
have to live with this for the time being.

-- dobey

More information about the xdg mailing list