Game data directory

Ingo Ruhnke grumbel at gmail.com
Fri Aug 21 07:55:27 PDT 2009


2009/8/20 Per Inge Mathisen <per.mathisen at gmail.com>:
> Anyone else touched upon such an issue before?

The traditional way was:

  ~/.APPNAME

the new location as defined in
http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
is:

  ~/.config/APPNAME

or if XDG_CONFIG_HOME is set:

 $XDG_CONFIG_HOME/APPNAME

The troublesome part is that a lot of applications and games don't yet
use the XDG stuff and continue to use ~/.APPNAME which makes things a
little confusing, but in the long run XDG_CONFIG_HOME really seems
like the better way to handle things, as it unclutters $HOME, makes
the location configurable and allows the distros to set a shortcut to
the ~/.config directory, as anything in there is not hidden.

When you want to increase visibility of the config or mod directory I
would suggest to simply spell out the name of the directory somewhere
within the game or maybe create a menu shortcut for it when installing
the game, but otherwise stick to the standard.

-- 
WWW:      http://pingus.seul.org/~grumbel/
Blog:     http://grumbel.blogspot.com/
JabberID: xmpp:grumbel at jabber.org
ICQ:      59461927


More information about the Games mailing list