PDF icon in Thunar

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

PDF icon in Thunar

Post 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" ?
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: PDF icon in Thunar

Post 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.
Image
Image
User avatar
schlawi54
Posts: 34
Joined: 14. Dec 2010, 11:31

Re: PDF icon in Thunar

Post 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:
"Besides, I think Slackware sounds better than 'Microsoft,' don't you?" (By Patrick Volkerding)
pevsner
Posts: 81
Joined: 12. Apr 2010, 16:08

Re: PDF icon in Thunar

Post 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.
Post Reply