[Kde-pim] Relocating the akonadi socket

Kevin Krammer krammer at kde.org
Sat Aug 17 15:07:35 BST 2013


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.

> > > I'm currently constantly running into problems when running tests due
> > > to the socket path being too long (the maximum is 108 chars I think).
> > 
> > The socket dir can also be configured in akonadiserverrc
> 
> That is a possible workaround, but I think it should be working by default
> and we're generally really close to the maximum pathlength. depending on
> the hostname and i.e. the pid of the testrunner prefix we're quickly
> beyond what works.

Right. As I said it is already effectively in tmp on my system, so maybe it is 
just a matter of using the actual path instead of the symlink based one?

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/9c62ab2c/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