[solved] Default Folder issues (help, I'm stupid!)...

[solved] Default Folder issues (help, I'm stupid!)...

Postby Fugazi on Tue Jun 18, 2013 11:13 am

Searched forum and google but can't find how to move the location of the Downloads, Music, Pictures, and Videos folders from the home directory to the various hard drives they're actually on. I've always been able to work it out on previous installs, but not this time. I'm using caja on Linux Mint 15 Mate edition (32bit). I like the pretty video picture on the special video folder etc.

Thanks,
Matt.
Last edited by Fugazi on Wed Jun 19, 2013 4:47 pm, edited 1 time in total.
Fugazi
Level 2
Level 2
 
Posts: 69
Joined: Sun Oct 30, 2011 3:42 pm

Linux Mint is funded by ads and donations.
 

Re: Default Folder issues (help, I'm stupid!)...

Postby eanfrid on Tue Jun 18, 2013 11:26 am

Whichever your DE is, you should always follow the xdg specifications standard from freedesktop.org, implemented in most of the current distributions nowadays. Check your home folder in the (hidden) .config folder. There you will find two files: user-dirs.dirs and user-dirs.locale. The first one contains defauts mappings and instructions to change them to your convenience. Special dir icons will automagically be applied where you told the config file to map these special folders.
Main desktop: Debian GNU/Linux Wheezy 64bit - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1871
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: Default Folder issues (help, I'm stupid!)...

Postby Fugazi on Wed Jun 19, 2013 11:53 am

user-dirs.dirs doesn't stay changed!
Changing:
Code: Select all
# 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.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
XDG_DOWNLOAD_DIR="$HOME/Downloads"

to:
Code: Select all
# 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.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$media/Media3/Music"
XDG_PICTURES_DIR="$media/Media1/Pictures"
XDG_VIDEOS_DIR="$media/Media2/Videos"
XDG_DOWNLOAD_DIR="$media/Media3/Downloads"

My computer has 4 drives: filesystem, Media1, Media2 and Media3; the media drives are automounted by fdisk at startup.

Any ideas?

Matthew
Fugazi
Level 2
Level 2
 
Posts: 69
Joined: Sun Oct 30, 2011 3:42 pm

Re: Default Folder issues (help, I'm stupid!)...

Postby eanfrid on Wed Jun 19, 2013 12:16 pm

XDG_xxx_DIR="/yyy", where /yyy is an absolute path. No other format is supported.

"$media/<something>" is not a path. "/media/Media1/Pictures" is an absolute path. Obviously "/Pictures" must also exist at the root of the drive mounted under "/media/Media1".
Main desktop: Debian GNU/Linux Wheezy 64bit - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1871
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: Default Folder issues (help, I'm stupid!)...

Postby Fugazi on Wed Jun 19, 2013 4:46 pm

That did the trick.
Many, many thanks.
Fugazi
Level 2
Level 2
 
Posts: 69
Joined: Sun Oct 30, 2011 3:42 pm


Return to MATE

Who is online

Users browsing this forum: No registered users and 5 guests