Patch set for looking up data and config directories
based on the XDG base dir specification, i.e. environment variable XDG_CONFIG_HOME, XDG_DATA_HOME and their respective _DIRS variants. Lookup is handled by a new class, XdgBaseDirs. There is one copy in server/src (using the server export macro) and one in libakonadi (using the lib export macro) This class is a bit modelled after KStandardDirs, but at the moment is just handles "resource types" config and data. For example, assuming all these XDG_ variables being unset, and .config/akonadi/akonadiserverrc does not exist yet, you can use a global example config /etc/xdg/akonadi/akonadiserverrc if you do not like the hardcoded defaults but want to delete the test directories every now and then. The Unix socket will by default end up in the data dir, i.e. $HOME/.local/share/akonadi/ Configs, like profilesrc or akonadiconnectionrc will by default end up in .config/akonadi/ See http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html for the other variable defaults. svn path=/trunk/KDE/kdepim/akonadi/libakonadi/; revision=703041
parent
5265fea7
Please register or sign in to comment