Skip to content

Add command line option to lock open databases#6511

Merged
droidmonkey merged 3 commits intokeepassxreboot:developfrom
Seltyk:cli-lock
May 15, 2021
Merged

Add command line option to lock open databases#6511
droidmonkey merged 3 commits intokeepassxreboot:developfrom
Seltyk:cli-lock

Conversation

@Seltyk
Copy link
Copy Markdown
Contributor

@Seltyk Seltyk commented May 11, 2021

Closes/Fixes #6126

This adds a command line option --lock which locks all open databases in the running instance. This also makes some minor changes to the codebase (e.g. changing bool sendFileNamesToRunningInstance(const QStringList& fileNames) to bool sendToRunningInstance(quint32 id, const QStringList& fileNames) for more flexibility in future), as well as some comments to explain what appears to be going on in otherwise-confusing code. Some of these comments are TODOs, particularly one that urges the use of an enum going forward per droidmonkey's idea.

Screenshots

--lock option in the --help print

Testing strategy

I loaded up one real database and one dummy database, then ran keepassxc --lock. As expected, both locked. I also made sure sending files to open works as usual.

Type of change

  • ✅ New feature (change that adds functionality)
  • ✅ Documentation (non-code change)

@droidmonkey droidmonkey self-requested a review May 13, 2021 02:56
@droidmonkey droidmonkey added this to the v2.7.0 milestone May 13, 2021
@Seltyk
Copy link
Copy Markdown
Contributor Author

Seltyk commented May 13, 2021

That commit should resolve your comments

@droidmonkey droidmonkey modified the milestones: v2.7.0, v2.6.5 May 15, 2021
@droidmonkey droidmonkey merged commit 60adcac into keepassxreboot:develop May 15, 2021
droidmonkey pushed a commit that referenced this pull request May 15, 2021
droidmonkey pushed a commit that referenced this pull request May 15, 2021
pull bot pushed a commit to iloeng/keepassxc that referenced this pull request May 15, 2021
pull bot pushed a commit to SammyEnigma/keepassxc that referenced this pull request May 15, 2021
pull bot pushed a commit to NeatNerdPrime/keepassxc that referenced this pull request May 15, 2021
droidmonkey pushed a commit that referenced this pull request May 16, 2021
droidmonkey pushed a commit that referenced this pull request May 30, 2021
droidmonkey added a commit that referenced this pull request Jun 8, 2021
Added

- Show search bar when toolbar is hidden or in overflow [#6279]
- Show countdown for clipboard clearing in status bar [#6333]
- Command line option to lock all open databases [#6511]
- Allow CSV import of bare TOTP secrets [#6211]
- Retain file creation time when saving database [#6576]
- Set permissions of saved attachments to be private to the current user [#6363]
- OPVault: Use Text instead of Name for attribute names [#6334]

Changed

- Reports: Allow resizing of reports columns [#6435]
- Reports: Toggle showing expired entries [#6534]
- Save Always on Top setting [#6236]
- Password generator can exclude additional lookalike characters (6/G, 8/B) [#6196]

Fixed

- Allow setting MSI properties in unattended install [#6196]
- Update MainWindow minimum size to enable smaller verticle space [#6196]
- Use application font size when setting default or monospace fonts [#6332]
- Fix notes not clearing in entry preview panel in some cases [#6481]
- macOS: Correct window activation when restoring from tray [#6575]
- macOS: Better handling of minimize after unlock when using browser integration [#6338]
- Linux: Start after the system tray is available on LXQt [#6216]
- Linux: Allow selection of modal dialogs on X11 in Auto-Type [#6204]
- KeeShare: prevent crash when file extension is missing [#6174]
aswild added a commit to aswild/keepassxc that referenced this pull request Jun 15, 2021
Release 2.6.5

Added

- Show search bar when toolbar is hidden or in overflow [keepassxreboot#6279]
- Show countdown for clipboard clearing in status bar [keepassxreboot#6333]
- Command line option to lock all open databases [keepassxreboot#6511]
- Allow CSV import of bare TOTP secrets [keepassxreboot#6211]
- Retain file creation time when saving database [keepassxreboot#6576]
- Set permissions of saved attachments to be private to the current user [keepassxreboot#6363]
- OPVault: Use Text instead of Name for attribute names [keepassxreboot#6334]

Changed

- Reports: Allow resizing of reports columns [keepassxreboot#6435]
- Reports: Toggle showing expired entries [keepassxreboot#6534]
- Save Always on Top setting [keepassxreboot#6236]
- Password generator can exclude additional lookalike characters (6/G, 8/B) [keepassxreboot#6196]

Fixed

- Allow setting MSI properties in unattended install [keepassxreboot#6196]
- Update MainWindow minimum size to enable smaller verticle space [keepassxreboot#6196]
- Use application font size when setting default or monospace fonts [keepassxreboot#6332]
- Fix notes not clearing in entry preview panel in some cases [keepassxreboot#6481]
- macOS: Correct window activation when restoring from tray [keepassxreboot#6575]
- macOS: Better handling of minimize after unlock when using browser integration [keepassxreboot#6338]
- Linux: Start after the system tray is available on LXQt [keepassxreboot#6216]
- Linux: Allow selection of modal dialogs on X11 in Auto-Type [keepassxreboot#6204]
- KeeShare: prevent crash when file extension is missing [keepassxreboot#6174]

Release 2.6.6

Fixed

- Fix focusing search when pressing hotkey [keepassxreboot#6603]
- Trim whitespace from TOTP key input prior to processing [keepassxreboot#6604]
- Fix building on macOS [keepassxreboot#6598]
- Resolve compiler warnings for unused return values [keepassxreboot#6607]
@phoerious phoerious added pr: new feature Pull request adds a new feature and removed new feature labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: new feature Pull request adds a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lock Databases via keepassxc Command Line flag

3 participants