[Kde-pim] Relocating the akonadi socket

Kevin Krammer krammer at kde.org
Sat Aug 17 17:21:17 BST 2013


On Saturday, 2013-08-17, Christian Mollekopf wrote:
> On Saturday 17 August 2013 16.07:35 Kevin Krammer wrote:
> > On Saturday, 2013-08-17, Christian Mollekopf wrote:
> > > On Saturday 17 August 2013 14.45:26 Kevin Krammer wrote:
> > > > On Saturday, 2013-08-17, Christian Mollekopf wrote:
> > > > > Hey,
> > > > > 
> > > > > I'd like to relocate the akonadi socket to /tmp.
> > > > 
> > > > Isn't that done already?
> > > > See server/src/utils.cpp function akonadiSocketDirectory()
> > > 
> > > I think that returns AkStandardDirs::saveDir( "data"
> > > )/socket-$hostname/
> > > 
> > > So typically something like:
> > > ~/.local/share/akonadi/socket-$domain/
> > 
> > On my system this is just a symlink.
> > I had another look at the code and maybe your problem is the ordering of
> > the two createSocketDirectory() calls.
> > And maybe the case of createSocketDirectory( link, tmpl ) could return
> > tmpl.
> 
> Ah, now I get it, the socket directory is indeed a symlink.
> 
> I agree, in that case akonadi should simply resolve the symlink to the
> /tmp dir before passing it to either akonadi or mysql.
> 
> That's currently not working for me, but I'll check where exactly this
> requires changes.

Needs testing but it could as easy as swapping lines 101 and 104 in utils.cpp 
and making 102 return tmpl instead of link.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20130817/19e301f2/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