13

When I changed my language/locale settings, a window popped up asking me if I wanted to rename Documents, Music, Video, Downloads, to the new language.

I was worried that this might be some irreversible operation and said no and ticked the don't ask me again box.

Now I want the system to change the folders name automatically when I switch to another language automatically. Is there a way to do this? or to make the popping window appear again?

Thanks.

11

When you told it to not ask you again, it probably removed the file

~/.config/user-dirs.locale

You can re-create that file. Assuming that the folders currently have English names, open a terminal window and run:

echo 'en_US' > ~/.config/user-dirs.locale
  • thank you so much! i was looking for this for two weeks :) – AlKaef May 14 '14 at 12:40
  • @AlKaef: You're welcome. I noticed that this seems to be more or less undocumented. – Gunnar Hjalmarsson May 14 '14 at 20:05
  • 1
    LANG=C xdg-user-dirs-update --force ; cat ~/.config/user-dirs.dirs – Denis Denisov Aug 23 '14 at 22:11
8

The popping window will show itself if you will change language again. You can use xprop command to get this window's name.

To update folder locations after you renamed/moved them, you have to edit .config/user-dirs.dirs and put there new folder locations.

And, finally, you have to run xdg-user-dirs-gtk-update or xdg-user-dirs-update.

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.