f-crm icon indicating copy to clipboard operation
f-crm copied to clipboard

Let the user re-initialize the application if initialization fails at start-up

Open nafergo opened this issue 6 years ago • 6 comments

If the database is not valid, not found (examples: changed the database name; moved the binary to another computer with another home/username; etc) the software won't start. My suggestion: if f-crm can't find valid database in the settings path, then create an empty database in the default location. I noticed this because was experimenting with database location in a mega/dropbox storage account :) that way I can work from desktop and laptop easily :)

  • again: ty for a great software, very useful! starting to use it to manage my freelance tuff :)

nafergo avatar Jan 02 '19 17:01 nafergo

I'll check it. Thank you.

jgaa avatar Jan 04 '19 06:01 jgaa

I have checked the code. The application is supposed to create the database if it don't exists, and that works for me when I test it.

If it fails to load the database, or fails to get the database schema version from the database, then it bails out. This is the intended behavior.

jgaa avatar Jan 04 '19 17:01 jgaa

But if it won't even start, how can I access settings and change the database path?

nafergo avatar Jan 12 '19 23:01 nafergo

I will make a fall-back so that if initialization fails, it will ask you f you want to re-initialize the application settings and the database. (I know how frustrating it is when an application behaves like this.)

What operating system are you using?

jgaa avatar Jan 13 '19 05:01 jgaa

Using Ubuntu 18.04

nafergo avatar Jan 13 '19 16:01 nafergo

Thank you.

jgaa avatar Jan 14 '19 08:01 jgaa