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.

  • 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

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


Then restart Thunar.

|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

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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