Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I inadvertently deleted my Pictures folder on my linux box running XFCE / Thunar and, after restoring from the trash bin, the folder icon is plain with no camera on it.

How do I get the folder icon back?

In folder properties I just find how to add emblems to the bottom left corner of the icon but it's not the same thing.

Thanks in advance for any advice.

share|improve this question
    
Hmm... have you tried restarting your session? (I.e. logged out and in again) Could be XDG-related. –  sr_ Aug 17 '12 at 8:49
    
Nope, didn't work... –  neurino Aug 17 '12 at 9:04
    
Nor switching between icon sets works, Pictures acts as a normal folder while Videos, Documents, Music etc switch according to theme... –  neurino Aug 17 '12 at 9:24
add comment

2 Answers

up vote 2 down vote accepted

Make sure $HOME/.config/user-dirs.dirs contains the line:

XDG_PICTURES_DIR="$HOME/Pictures"

Then restart Thunar.

share|improve this answer
    
Oh, yes, thanks a lot, but, apart from asking on SE, how's a mortal supposed to know about these magic? It really drove me nut... –  neurino Aug 22 '12 at 7:25
    
I searched Google for [xfce picture folder icon], which lead me to this Gentoo forum page, where someone quoted the Gentoo installation messages that mention $HOME/.config/user-dirs.dirs. I looked in that file and found the XDG_PICTURES_DIR line. I tried playing with it and that seemed to cause the behavior you saw. –  Jim Paris Aug 22 '12 at 13:49
    
Another method that I used was to search the /etc and /home/.config directories for the string Pictures, under the assumption that it was somehow configurable (since yours managed to stop working). Since that's a fairly unique capitalization, it pretty quickly pointed me towards the user-dirs.dirs file either in /home/.config or /etc/xdg. –  Jim Paris Aug 22 '12 at 13:52
    
Ok, it makes sense, I searched Google for the same terms too but had no luck, maybe I did not pay enough attention. Unluckily to me it was not possible to search the string Pictures as it was somehow removed, good idea though. Thanks again –  neurino Aug 23 '12 at 7:38
add comment

Here is a more complete $HOME/.config/user-dirs.dirs for anyone that doesn't have the file at all:

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.