Page 1 of 1

PDF icon in Thunar

Posted: 14. Dec 2010, 09:35
by witek
PDF icon is the same as for other documents, which is irritating when you have many files in the same directory and different types looks the same.

I found discussion on that topic:
gapan wrote: But it seems it's a consious choice from the freedesktop people. From file /usr/share/mime/packages/freedesktop.org.xml:

Code: Select all

<generic-icon name="x-office-document"/>
that's from the pdf section. So you can edit that if you want to point to some other type of icon.
I would like to change the icon but don`t know exactly which file to edit (/etc/xfce? /usr/share/?) and change it to what instead of"x-office-document" ?

Re: PDF icon in Thunar

Posted: 14. Dec 2010, 10:48
by gapan
You should change that file that you're quoting and change that line to point to an icon that is included in your current theme. Run the "Rebuild icon cache" tool when you're done with it.

Re: PDF icon in Thunar

Posted: 14. Dec 2010, 11:39
by schlawi54
Hi.
You could find good documentation about customized thumbnails.
:arrow: http://goodies.xfce.org/projects/thunar ... umbnailers
:arrow: http://thunar.xfce.org/documentation/C/ ... hunar.html

Thunar-thumbnailers goody seems to be able to generate PDF icons, besides other useful types. 8-)

There should also be /usr/bin/evince-thumbnailer available. :idea:

Re: PDF icon in Thunar

Posted: 15. Dec 2010, 01:26
by pevsner
In /usr/share/mime there's a file "generic-icons".
I edit that to: application/pdf:application-pdf(or your icons name)
Icon name can be found in ~./icons/yourtheme/mimetypes/48 or system /usr/share/icons/your theme/mimetypes/48
Rebuild icon cache as gapan says: -

Code: Select all

for i in ~/.icons/*;do  gtk-update-icon-cache -f $i; done
or

Code: Select all

for i in /usr/share/icons/*;do  gtk-update-icon-cache -f $i; done
http://xfce-look.org/ if you need a nice icon.