Keepassxc: Lockfile remains after database auto-locks

Created on 9 Feb 2017  路  5Comments  路  Source: keepassxreboot/keepassxc

Expected Behavior


The database lockfile should be removed when the database auto-locks, if a timeout is configured.

Current Behavior


The database auto-locks, but the lockfile remains.

Possible Solution


Delete the lockfile when the database is auto-locked, the same way it's deleted when the database is closed.

Steps to Reproduce (for bugs)


  1. Configure an auto-lock timeout
  2. Open a database
  3. Wait for the timeout to trigger auto-locking
  4. Verify if the lockfile exists

Context


When a database is accessed by multiple users on a network drive, a frequent problem encountered is users forgetting to close KeePassXC, thus preventing other users from modifying it. This problem could be avoided if all users had an auto-lock timeout configured, and if auto-locking would remove the lockfile, allowing other users to modify the database when it's unused. If a user unlocks a database after being auto-locked, the lockfile would be re-created, unless a new lockfile already exists, in which case the database would be simply re-opened in read-only mode.

Your Environment


KeePassXC 2.2.1 in Windows

bug

Most helpful comment

馃憤

That is exactly what I was looking for since KeePassX 1.x, which did it "right". Version 2.x introduced this new behaviour.

I use a shared database file, which lives in a Seafile folder. My colleague and I always have the problem, that one of us forgets to close KeePass, maybe even before holidays.

I'm really looking forward to a solution to this.

All 5 comments

I can confirm that I am using the same context. network drive and multiple pc's with auto-lock and removal of the lock file when database is locked would solve all those problems.

I tried to fix this, but came to the conclusion that this problem cannot be solved right now. The code that is responsible for managing the lock file needs some heavy refactoring before this issue here can be addressed without creating an utter mess. I therefore need to postpone this to the next feature release.

馃憤

That is exactly what I was looking for since KeePassX 1.x, which did it "right". Version 2.x introduced this new behaviour.

I use a shared database file, which lives in a Seafile folder. My colleague and I always have the problem, that one of us forgets to close KeePass, maybe even before holidays.

I'm really looking forward to a solution to this.

Deferred to 2.3.0 due to refactoring work required.

Will be corrected through #1002 by removing lockfile entirely.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Throne3d picture Throne3d  路  3Comments

2tbwXj46BDbdNBRV79DS picture 2tbwXj46BDbdNBRV79DS  路  3Comments

haroldm picture haroldm  路  3Comments

clementlesne picture clementlesne  路  3Comments

MisterY picture MisterY  路  3Comments