Menu

#1378 Lock workspace on computer lock or suspend is ineffective on Mono

KeePass_2.x
closed
nobody
None
5
2015-05-29
2015-05-17
No

KeePass uses Microsoft.Win32.SystemEvents to detect suspend and lock events (KeePass/Util/SessionLockNotifier.cs), but this interface is not currently implemented by Mono (https://github.com/mono/mono/blob/master/mcs/class/System/Microsoft.Win32/SystemEvents.cs). Consequently, enabling the options "Lock workspace when locking the computer or switching the user" and "Lock workspace when the computer is about to be suspended" has no effect.

I see three possible solutions to this:

  • Grey-out the options when running on Mono, and don't offer this functionality.
  • Implement a Linux-specific mechanism for detecting lock and suspend events.
  • Implement SystemEvents in Mono.

Discussion

  • Dominik Reichl

    Dominik Reichl - 2015-05-29
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2015-05-29

    Thanks for the report. KeePass 2.30 will disable these options when running under Mono.

    Here's the latest development snapshot for testing:
    http://keepass.info/filepool/KeePass_150529b.zip

    Best regards,
    Dominik

     

Log in to post a comment.

MongoDB Logo MongoDB