Bug 403503

Summary: mysql init looking for wrong defaults?
Product: [Frameworks and Libraries] Akonadi Reporter: Harald Sitter <sitter>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: rdieter
Priority: NOR    
Version: GIT (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Harald Sitter 2019-01-22 13:41:35 UTC
SUMMARY

https://cgit.kde.org/akonadi.git/tree/src/server/storage/dbconfigmysql.cpp#n360

```
        const QString confFile = StandardDirs::locateResourceFile("config", QStringLiteral("akonadi/mysql-global.conf"));

```

As far as I can tell that shouldn't have the akonadi/ prefix (as seen with other similar calls in that file). This seems to result in lookups going for $dir/akonadi/akonadi/mysql-global.conf which is wrong. Simply dropping the prefix should fix this problem as StandardDirs at a glance prefixes everything with akonadi/ forcefully. On a related note it may be a good idea to make StandardDirs either handle already prefixed arguments or raise an error.