Bug 409571 - Unable to open SQLite database by providing filename on command line
Summary: Unable to open SQLite database by providing filename on command line
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: database (show other bugs)
Version: 5.0.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-07 09:30 UTC by Thomas Baumgart
Modified: 2019-07-07 10:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)