Keepassxc: KeePassXC prevents KDE Plasma from logging out

Created on 24 Mar 2019  路  6Comments  路  Source: keepassxreboot/keepassxc

Expected Behavior

KDE Plasma logs me out.

Current Behavior

If I try to log out, shut down or reboot my computer, Plasma will display a popup saying that the log out/shut down/reboot of Plasma was cancelled by /usr/bin/keepassxc.

Possible Solution

I've tried the following:

  • Enabling and disabling autosave
  • Enabling and disabling safe save
  • Trying to log out/shut down/reboot when the DB is locked and unlocked

But none of it worked.

Steps to Reproduce

  1. Use KDE Plasma with KeePassXC launched
  2. Try to log out from Plasma "Start Menu"
  3. See the popup by Plasma Workspace saying Logout canceled by '/usr/bin/keepassxc'

Context

I'm running an up to date Arch Linux install:

  • KDE Plasma 5.15.3
  • KDE Frameworks 5.56.0

I'v had this bug before (a long time ago) but it was eventually corrected, it just "came back" with version 2.4.0.

Debug Info

KeePassXC - Version 2.4.0
Revision: c51752d

Libraries:

  • Qt 5.12.2
  • libgcrypt 1.8.4

Operating system: Arch Linux
CPU architecture: x86_64
Kernel: linux 5.0.3-arch1-1-ARCH

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (only unsigned sharing)
  • YubiKey
bug duplicate Linux

Most helpful comment

Ok, as I suspected. Unfortunately the real fix to this is platform-dependent. Each platform sends a pre-shutdown notification that we have to identify uniquely from a user close action. This occurs in the OSEventFilter class. I implemented it for Windows, but need to dive into Xcb docs to figure it out for Linux.

All 6 comments

May be related to #1190 and #856

Do you have the system tray icon enabled and minimize to system tray instead of exiting? If so, please try disabling those one at a time to see if the issue goes away. I want to isolate this on a known "broken" example.

I have both enabled indeed! And the culprit is "Minimize instead of app exit", if I disable it no more problem!

EDIT: I've also tried to only disable the systray icon while keeping "Minimize instead of app exit" enabled but the problem persisted.

Ok, as I suspected. Unfortunately the real fix to this is platform-dependent. Each platform sends a pre-shutdown notification that we have to identify uniquely from a user close action. This occurs in the OSEventFilter class. I implemented it for Windows, but need to dive into Xcb docs to figure it out for Linux.

This is actually a duplicate of #2692

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shaneknysh picture shaneknysh  路  3Comments

clementlesne picture clementlesne  路  3Comments

TheZ3ro picture TheZ3ro  路  3Comments

MisterY picture MisterY  路  3Comments

shyim picture shyim  路  3Comments