[Kde-pim] [patch] Akonadi directories based on XDG base directory spec

Volker Krause vkrause at kde.org
Tue Aug 21 19:02:49 BST 2007


On Monday 20 August 2007 23:26:34 Kevin Krammer wrote:
> 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.

Thanks, excelent work, please commit :)

regards
Volker
-------------- 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/20070821/8743a23a/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