I get an horrible icon in the desktop while it is perfectly nice in thunar. Screenshot attached. I'm using debian unstable's xfce4 4.3.90 and thunar 0.3.0beta1 with gnome icon theme. Thanks in advance. ps. i'm filing this under thunar because AFAIK xfdesktop uses thunar libs for desktop icons
Created attachment 617 Two different icons, one nice and one horrible
Brian, any ideas?
Nope.
Ah, I know. thunar_file_get_icon_name() tries to use the binary name to lookup an icon for executables, while xfdesktop doesn't do that.
That sounds like the kind of hack you don't like, Benny ^_~. So how are you doing it - check the binary name first, or last?
Well, it's a hack, definitely, but it improves the usability; so it's worth it. Basicly: 1) Check if it's the root node -> "gnome-dev-harddisk" 2) Check if it's the home node -> "gnome-fs-home" 3) Check if executable and the file name is a valid icon name -> file name 4) thunar_vfs_mime_info_lookup_icon_name()
Ok, I dispensed with the first two since desktop items won't be the root item or the home folder (though I guess you could have links, but... whatever). Should be fixed.