From: Dennis T. <2t...@in...> - 2005-12-08 00:23:57
|
Peter wrote: >On Wed, 07 Dec 2005 18:05:37 +0100, Dennis Tomas wrote: >snip... > > >>So here's a patch to fix this. There could however be a problem with >>icon-names that have a '.' in the portion before the extension, but to >>my knowledge, none do. >> >> > >Oops, how about .DirIcon in the Apps directories? But it has no extension. > > I meant, it would be a problem if a .desktop-file had an entry like: Icon=.iconname or Icon=icon.name.extension or Icon=icon.name which I think isn't a common way of naming application-icons (in an icon-theme, not as a .DirIcon). However, it isn't written anywhere in the xdg-standard, so it's still possible. A solution would be to look for ".png", ".svg" and ".xpm" at the end of the icon-name and cut them off. Or first try to look up the icon as it is and if it fails, cut the last 4 characters from the string and try again. ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |