[Kde-pim] [patch] Akonadi directories based on XDG base directory spec
Kevin Krammer
kevin.krammer at gmx.at
Mon Aug 20 22:26:34 BST 2007
Hi all,
as promised I create a 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, see attachment.
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.
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.diff
Type: text/x-diff
Size: 15569 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070820/3b8244f7/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libakonadi.diff
Type: text/x-diff
Size: 4138 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070820/3b8244f7/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdgbasedirs.h
Type: text/x-c++hdr
Size: 2183 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070820/3b8244f7/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdgbasedirs.cpp
Type: text/x-c++src
Size: 5986 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070820/3b8244f7/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070820/3b8244f7/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list