Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

(This is not a duplicate as this question describes how to add custom icons to folders in Nautilus, whereas there seems to be no explanation for Thunar.)

In Nautilus (as this questions shows) there is the fun feature of being able to place any custom icon onto a folder by just right clicking the folder, clicking the folder in the menu that comes up and selecting a custom icon.

However in Thunar I can only seem to add emblems (see the screenshot below) and not actual custom icons (I have a folder of them scaled to the right sizes ready to use). I have looked round the Thunar settings and general Xfce settings-editor but have not been able to see a way of setting a custom icon on a folder. This question only describes how to add a custom emblem in Thunar, which is different.

My home folder in Thunar with emblems but not custom icons:

Home folder

share|improve this question
1  
I doubt Thunar even supports that feature. It only supports Emblems, for whatever that is worth. –  Uri Herrera Sep 11 '12 at 17:54

1 Answer 1

up vote 6 down vote accepted

This feature request has come up on the mailing-lists several times, and was quite recently proposed in this discussion. However, the answer from Simon Steinbeiß, an active xfce and xubuntu developer, was that:

You can use either emblems (right-click > properties > emblems) or the user-dirs (the fixed list of user directories can be found and modified in ~/.config/user-dirs.dirs). No support for custom folder-icons at the moment.

There is a discussion at the xfce forum on how thunar custom icons could be accomplished, and a patch has even been submitted for thunar. It is explained that the patch

scans the thumbnaill dir and loads a custom icon if there's a file that matches the file name on the desktop. So a file on the desktop named foo will have a custom icon loaded if the image in the .thumbnails dir is foo.gif

However, one of the leading xfce developers, Nick Schermer, has commented that

Non md5hash files in the .thumbnails directory is a bad idea.
The prefix-only check if a bit flawed as well, it can be improved with a dot-check (so foo2.png is not matched).

So the method as described in the patch has not really been validated by the developers, and because it would involve a lot of time compiling thunar and its dependencies (as noted here), and then a lot of risk in installing them to your system, I would advise against trying it. You could experiment of course in a virtualised environment (virtualbox) or on a computer set aside for development, but not on a stable system.

It is usually fine to compile programs and apply patches, as I have discussed in many examples on this site, but on this occasion it is better to wait until a solution is available that has been validated by the developers.

For now the question is 'solved', but I will continue to update it and indeed research the issue to see how it could be accomplished in the manner that it is done in Nautilus.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.