[Mageia-dev] Alpha-1 Comments

JA Magallón jamagallon at ono.com
Tue Mar 15 18:45:44 CET 2011


On Tue, 15 Mar 2011 11:33:35 +0100, Michael Scherer <misc at zarb.org> wrote:

> Le mardi 15 mars 2011 à 01:12 +0100, JA Magallón a écrit :
> 
> > And, now that you are building a new distro, perhaps the HOME layout could be changed.
> > Nowadays:
> > 
> > Documents Templates Pictures Videos Music ....
> > 
> > Perhaps:
> > 
> > Documents Documents/Templates Media/Image Media/Video Media/Music
> > 
> > so in your ~home you just see 'Documents' and 'Media'. Just XDG default settings.
> 
> We follow the xdg standard :
> http://www.freedesktop.org/wiki/Software/xdg-user-dirs
> 
> So if you want change, you should push them there first.
> 

You can do whatever you think is correct, but changing locations is not going
against the standard. The standard just says how to set and query the location
for (for example) the Documents folder in a standard way.

Since long time ago I use a .config/user-dirs.dirs like this:

# 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-lnx"
XDG_DOCUMENTS_DIR="$HOME/doc"
XDG_TEMPLATES_DIR="$HOME/doc/templates"
XDG_MUSIC_DIR="$HOME/media/music"
XDG_PICTURES_DIR="$HOME/media/image"
XDG_VIDEOS_DIR="$HOME/media/video"
XDG_PUBLICSHARE_DIR="$HOME/pub"
XDG_DOWNLOAD_DIR="$HOME/in"

I don't like seeing the Desktop folder in my home, and I have all media
in one folder so it can be symlinked to a global media folder for all family
or mounted remotely. And everything works as should.

You even have this in /etc/xdg/user-dirs.defaults:

# Another alternative is:
#MUSIC=Documents/Music
#PICTURES=Documents/Pictures
#VIDEOS=Documents/Videos

So perhaps a sane setting (no so unix-ish as mine) could be:

DESKTOP=.Desktop
DOCUMENTS=Documents
TEMPLATES=Documents/Templates
MUSIC=Media/Music
PICTURES=Media/Pictures
VIDEOS=Media/Videos
PUBLICSHARE=Public
DOWNLOAD=Downloads

-- 
J.A. Magallon <jamagallon()ono!com>     \               Software is like sex:
                                         \         It's better when it's free


More information about the Mageia-dev mailing list