Bug 288112

Summary: try harder if the default SQL driver is missing
Product: [Frameworks and Libraries] Akonadi Reporter: Nick Shaforostoff <shafff>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: minor CC: dvratil
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nick Shaforostoff 2011-12-03 09:39:06 UTC
Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

please make akonadi search for available drivers and select first working one if the one specified in ~/.config/akonadi/akonadiserverrc is not available.


Reproducible: Always

Steps to Reproduce:
use case:
kubuntu comes with akonadi-backend-mysql backend installed and configured by default, but i consider it to heavy for a netbook.

so i install akonadi-backend-sqlite, then uninstall akonadi-backend-mysql.
then restart pc.

Actual Results:  
result:
akonadi fails to start after system reboot.
this happens because ~/.config/akonadi/akonadiserverrc file only contains QMYSQL driver section and [General] section still points to QMYSQL, 


Expected Results:  
expected:
akonadi starts fine autoselecting first driver available (QSQLITE in this case).
[QSQLITE] section with default values is added to akonadiserverrc file,
and the driver specified in [General] section is automatically changed to QSQLITE.


i reported initially this feature request to debian but they said upstream should work on this instead
Comment 1 Daniel Vrátil 2013-08-28 14:20:21 UTC
The backend can be configured in System Settings -> Akonadi Configuration -> Akonadi Server Configuration.

Akonadi just tries to use whatever is configured. To switch to another backend, you have to change it in the KCM.