Blocked database Alt+F4 is deprecated?

Hi,
Mostly everytime I launch DarkTable (in a manjaro system) I need to delete data.db.lock and library.db.lock because of the warning message it appears and stop darktable from running.
I’ve been told that probably there is a problem in how I quit the program and I then observed my workflow.
In effect if I quit the program with Alt+F4 the database lock is not deleted!
Is that an expected behaviour? Otherwise Ctrl+Q seems working better, and the two lock files are deleted.

I think the behaviour of Alt+F4 is defined by your window manager / desktop environment and not controlled by darktable. If Ctrl+Q works better for you, I would recommend you use that - it’s what I usually use to exit darktable.

1 Like

I understand, thank you

I suspect that Alt-F4 tells the window manager to kill the window, and then the program will crash as a result since the window descriptor is no longer valid. In this case, the database is not cleanly flushed and unlocked. When issuing a Ctrl-Q, this sends an event to the program that gives it a chance to clean up the database and exit nicely.

2 Likes