KeePassium icon indicating copy to clipboard operation
KeePassium copied to clipboard

"Lock on Reboot" triggers on Mac session lock

Open keepassium opened this issue 3 weeks ago • 5 comments

Description Whenever Mac session is locked, KeePassium incorrectly detects device reboot.

How to reproduce Steps to reproduce the behavior:

  1. Enable the "Lock on Reboot" option
  2. Lock Mac session / close the lid / set computer to sleep
  3. Wait 30+ seconds and unlock the session
  4. Observe the DB is locked and closed; app log states "Device reboot detected, locking the databases"

Expected behavior Locking the session should not be recognized as reboot.

Environment:

  • Device: any Mac
  • OS: any
  • App Version: 2.5.171

Additional context After session lock, the app cannot access boot timestamp from keychain; the error is incorrectly interpreted as a reboot event.

[thanks, Stuart]

keepassium avatar Dec 08 '25 08:12 keepassium

Hi. I reported this issue but I experienced it on iPad and iPhone, not macOS. Just wanted to check as this is tagged as a macOS bug. But I think it's a bug across all Apple operating systems, including iOS and iPadOS. Many thanks.

stukey avatar Dec 09 '25 11:12 stukey

Thank you for the correction, @stukey. This issue explained a couple of macOS bugs, so I almost automatically filed it as macOS-only. We'll make sure to test the solution on both platforms.

keepassium avatar Dec 10 '25 14:12 keepassium

Thanks @keepassium. Have you been able to find a fix or possible solution for this one? I hope so...

stukey avatar Dec 10 '25 14:12 stukey

@stukey , yeah, the idea is to cache boot timestamp in RAM instead of going to keychain every time. It will just need some testing.

keepassium avatar Dec 10 '25 14:12 keepassium

Sounds like a good plan. Look forward to testing this... Thanks!

stukey avatar Dec 10 '25 15:12 stukey