keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.94k stars 1.44k forks source link

New --lock command opens the application window #6739

Open scaramangado opened 3 years ago

scaramangado commented 3 years ago

Steps to Reproduce

  1. Have KeepassXC with an unlocked database running in the background.
  2. Run keepassxc --lock in the command line.

Expected Behavior

The database is locked, the applications stays hidden.

Actual Behavior

The database is locked, but the application window opens.

Context

As far as I understand this feature is meant to be used to lock the database in a shell script (e.g. when locking the screen). Currently the behaviour leads to the application window being open after locking the screen.

KeePassXC - Version 2.6.6 Revision: 9c108b9

Operating system: Linux CPU architecture: x86_64 Kernel: linux 5.12.15-arch1-1 Desktop Env: Awesome WM Windowing System: X11

droidmonkey commented 3 years ago

That's cause single instance focuses the running instances. This is not desired in this case and a bug.