Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Edit to user-dirs.dirs won't persist

  Date: Jan 21    Category: Unix / Linux / Ubuntu    Views: 721
  

I want to change the locations of my Pictures, Videos and Music folders.

I found some instructions which involve a simple edit to
~.config/user-dirs.dirs

I make the changes, and sure enough the Pictures shortcut etc now go to
my new locations. The screensaver Pictures folder is the new one too.

However after a reboot, all the entries in user-dirs.dirs are reset to
"$HOME"

The changes I've tried to make are of the form
XDG_MUSIC_DIR="/media/Seagate/Music"

There's a comment at the top of user-dirs.dirs:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#

Which ambiguously suggests both that the file is written by software,
and that a change to it will persist.

Any suggestions as to what I need to do?

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Jan 21    

Ubuntu Tweak allows you to easily change default folders from the GUI. It is
available from Getdeb's repositories.
http://www.getdeb.net

 
Answer #2    Answered On: Jan 21    

Thanks, but I found that even when I made the change with Ubuntu
Tweak it didn't persist after a reboot.

So I've made a copy of user-dirs.dirs and put a command in Startup
Applications:
cp .config/Preferreduser-dirs.dirs .config/user-dirs.dirs

I'm sure there must be a better way, but it works!

 
Answer #3    Answered On: Jan 21    

Before doing anything, make sure you user scripts aren't stomping on each other.
There are several user scripts like ~/.bash_profile that will start only at
logon. Other like ~./bashrc start at a terminal window.

 
Didn't find what you were looking for? Find more on Edit to user-dirs.dirs won't persist Or get search suggestion and latest updates.




Tagged: