Bug 241982

Summary: Akonadi needs envrionment variables to be set on MS Windows
Product: [Frameworks and Libraries] Akonadi Reporter: Andre Heinecke <aheinecke>
Component: generalAssignee: Volker Krause <vkrause>
Status: RESOLVED FIXED    
Severity: wishlist CC: kde-windows, kdepim-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Generated header for path defines

Description Andre Heinecke 2010-06-17 12:31:50 UTC
Version:           unspecified (using Devel) 
OS:                MS Windows

Akonadi has no default Paths when looking for configuration files on Windows Systems. The XDG Variables have to be set manually which should not be the case.
By default Akonadi should use the directory it is placed and look into ../share ../share/config/akonadi and so on for the system configuration files and in its current directory for virtuoso/mysql. 
The XDG Variables should allow to overwrite that behavior but not be always needed.  

Reproducible: Didn't try
Comment 1 Andre Heinecke 2010-06-17 12:35:17 UTC
This is important because it hinders the creation of a usable akonadi package for the KDE-Windows installer.
Comment 2 Volker Krause 2010-06-24 09:41:35 UTC
It should do this already, could you please post the content of akonadi-prefix.h which is generated in the top-level build directory?
Comment 3 Kevin Krammer 2010-06-24 10:14:55 UTC
Created attachment 48281 [details]
Generated header for path defines

using prefix C:\KDE\trunk as KDE root for emerge
Comment 4 Andre Heinecke 2010-06-24 12:04:07 UTC
Akonadi does use the values it gets at build time, which is not very useful for packaging. And devlivering precompiled binaries.

On my system for example it is:

#define AKONADIPREFIX "R:/"
#define AKONADIDATA   "share"
#define AKONADICONFIG "share/config"
// the below is hardcoded to what FindKDE4Internal.cmake sets it to, since we have no way of finding that
#define AKONADIBUNDLEPATH "/Applications/KDE4"
Comment 5 Andre Heinecke 2011-01-17 15:16:36 UTC
This was fixed long ago Akonadi now can run without environment variables to be set in the default Path layout on Windows.