[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: User directories integration - request for help



On Thu, 2007-03-15 at 10:53 -0400, Matthew Miller wrote:
> On Thu, Mar 15, 2007 at 11:13:30AM +0100, Alexander Larsson wrote:
> > The directories availible are:
> > DESKTOP: the standard desktop dir
> > DOWNLOAD: default location for downloads
> > TEMPLATES: used by nautilus for templates
> > PUBLICSHARE: This is ~/Public as used by gnome-user-share
> > DOCUMENTS: default location for "documents"
> > MUSIC: default location for music
> > PICTURES: default location for pictures
> > VIDEOS: default location for movies
> 
> What's with the ALL CAPS? I'm having an Apple ][ flashback.

The config is stored in a shell-style file to make it easier to read in
a shell script:

cat ~/.config/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.
# 
XDG_DESKTOP_DIR="$HOME/Skrivbord"
XDG_DOWNLOAD_DIR="$HOME/Hämtat"
XDG_TEMPLATES_DIR="$HOME/Templates"
...

For some historical reason env vars (PATH, HOME, etc) are all caps, so I
just followed suit.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a sword-wielding ninja paramedic She's an orphaned renegade soap star on 
the trail of a serial killer. They fight crime! 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]