[Shotwell] How about meet XDG standards, move config, cache, data dir to XDG dirs?
无可救药
jarryson at gmail.com
Fri Mar 26 09:19:15 PDT 2010
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
instead of put all files into ~/.shotwell, put config files to
$XDG_CONFIG_HOME/shotwell, cache files to $XDG_CACHE_HOME/shotwell, data
files to $XDG_DATA_HOME/shotwell will be better.
$XDG_CONFIG_HOME default is ~/.config
$XDG_CACHE_HOME default is ~/.cache
$XDG_DATA_HOME default is ~/.local/share
it will make your $HOME dir clean, and easier for user to delete what the
don't want, e.g. cache files. just delete ~/.cache, no need to find cache
file in every application dirs.
glib2 provide g_get_user_config_dir(), and python provide pyxdg, vala i
don't know yet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zaftra.yorba.org/pipermail/shotwell/attachments/20100327/8d20402a/attachment.html>
More information about the Shotwell
mailing list