Icon-mime type associations

David Faure dfaure at trolltech.com
Thu Sep 16 12:46:27 EEST 2004


On Thursday 16 September 2004 09:50, Alexander Larsson wrote:
> On Wed, 2004-09-15 at 18:48 -0700, Ryan Gammon wrote:
> 
> > Ideally, we'd like to see the icon lookup code:
> > - look for an appropriate document icon in the current icon theme under 
> > a standardized name
> > - if none is available, look to .desktop file for the default app for 
> > that mime type for a icon filename
> > - search icon themes & hicolor as ususal
> > 
> > One possible way to do this would be to add a line to the .desktop file 
> > like:
> > 
> > MimeType=audio/x-pn-real-audio
> > MimeIcon=realplay-audio-ra.png
> > 
> > ... where the order of the mime types matches the order of the icons.
> > 
> > Some logic would also have to be added to gnome-vfs and the kde 
> > equivalent to do a .desktop file lookup for mime type icon names.
> > 
> > What do you folks think?
> 
> But desktop files are per-app. Not per type. You will have several
> desktop files supporting each mime type. Not to mention that this
> requires all apps that show icons for files to read and parse all
> desktop files, which is slow and uses lots of memory.

Yeah. Didn't we decide on mimetype_name == icon_name, like Gnome currently does?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the xdg mailing list