https://bugs.kde.org/show_bug.cgi?id=504312

--- Comment #26 from Andreas Schneider <[email protected]> ---
There is an issue with
~/.local/share/dbus-1/services/org.freedesktop.secrets.service

[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/usr/bin/keepassxc

If you have plasma-nm and a wifi network. This starts keepassxc before Plasma
fully initialized. It starts before can register a system tray icon. It starts
somewhere in the background and you need to call keepassxc to bring the window
into foreground. I have 2 better ways but they do not fully work yet.

Option 1:
~/.local/share/dbus-1/services/org.freedesktop.secrets.service
[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/bin/false
SystemdService=keepassxc.service

~/.config/systemd/user/keepassxc.service                      
[Unit]
Description=KeePassXC
After=plasma-plasmashell.service
PartOf=graphical-session.target

[Service]
ExecStart=/usr/bin/keepassxc
Restart=on-failure

[Install]
WantedBy=plasma-workspace.target

Problem:
keepassxc is started before `busctl --user status
org.kde.StatusNotifierWatcher` is up for system tray icons registration. You
need to call keepassxc to bring it into foreground.

Option:
~/.local/share/dbus-1/services/org.freedesktop.secrets.service
[D-BUS Service]
Name=org.freedesktop.secrets
Exec=/usr/bin/kioclient --desktopfile ~/.local/share/keepassxc.desktop

~/.local/share/keepassxc.desktop
[Desktop Entry]
Name=KeePassXC
GenericName=Password Manager
Exec=keepassxc
TryExec=keepassxc
Icon=keepassxc
StartupWMClass=keepassxc
StartupNotify=false
Terminal=false
Type=Application
Version=1.0
Categories=Utility;Security;Qt;
MimeType=application/x-keepass2;
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Delay=2
X-KDE-autostart-after=panel
X-LXQt-Need-Tray=true

Problem: Keepassxc starts and ask for the password correctly, but after
unlocking plasma-nm is not able to fetch the password :-(

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to