[Kde-pim] Relocating the akonadi socket

Christian Mollekopf chrigi_1 at fastmail.fm
Sat Aug 17 14:45:56 BST 2013


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/

and for the testrunner the prefixed path inside /tmp/

> > 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.

Note that there are also open bugs regarding this issue:
https://bugs.kde.org/show_bug.cgi?id=277839

> > We should probably do the same with the mysql socket.
> 
> I think it is already in the same dir as the server socket.
> 

Indeed.

So I'd just suggest to adjust the default akonadiSocketDirectory().
Is there anything speaking against a default path inside $tmp?
And why do we required the domain in the path?

I'd suggest something like /var/ak-$instance-$UUID/ or even just /var/ak-$UUID

Cheers,
Christian

> Cheers,
> Kevin
_______________________________________________
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