Bug 409571

Summary: Unable to open SQLite database by providing filename on command line
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: databaseAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 5.0.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Baumgart 2019-07-07 09:30:09 UTC
SUMMARY
Starting KMyMoney with an SQLite file as URL to open on the command line does not work properly.

STEPS TO REPRODUCE
1. Start KMyMoney with an SQLite filename as command line argument
2. 
3. 

OBSERVED RESULT
Error message: "Could not read your data source. Please check the KMyMoney settings that the necessary plugin is enabled." is shown though all plugins are installed, activated and the file is not corrupt.

EXPECTED RESULT
KMyMoney opens the database w/o error message.

ADDITIONAL INFORMATION
Starting KMyMoney with option -n and then using File/Open database works as expected. Also the next start without any options loads the database without problems. Only providing the name as argument on the command line shows the error message.
Comment 1 Thomas Baumgart 2019-07-07 10:12:45 UTC
Works as expected. For SQLite files one needs to provide a full URL including the backend driver (e.g. sql://user@localhost//home/user/mydata.sql?driver=QSQLITE)