Akonadi can't find mysql-global.conf placed at path /etc/xdg/akonadi dir.
It looks for it at /etc/xdg/akonadi/akonadi/ (see extra akonadi/ part appended).
Details
Details
After this patch akonadiselftest and akonadi server should look for the mysql-global.conf file at /etc/xdg/akonadi.
It could be checked with command: strace -e statx akonadiselftest 2>&1 |grep mysql-global.conf.
Diff Detail
Diff Detail
- Repository
- R165 Akonadi
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Another approach is to remove prefix akonadi/ from all calls to the StandardDirs::locateResourceFile (second parameter):
src/widgets/selftestdialog.cpp 320: const QString globalConfig = StandardDirs::locateResourceFile("config", QStringLiteral("akonadi/mysql-global.conf")); 335: const QString localConfig = StandardDirs::locateResourceFile("config", QStringLiteral("akonadi/mysql-local.conf")); src/server/storage/dbconfigmysql.cpp 376: const QString confFile = StandardDirs::locateResourceFile("config", QStringLiteral("akonadi/mysql-global.conf"));
Comment Actions
It looks right solution buildFullRelPath https://phabricator.kde.org/source/akonadi/browse/master/src/private/standarddirs.cpp$38 adds the prefix.