Open principis opened 3 years ago
Sounds like either a KDE or QWayland bug to me.
This seems to be related: https://bugreports.qt.io/browse/QTBUG-74310
I'm confused why this works on Gnome... Nvm, it wasn't running with wayland:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
This might be something we can control though because the setting "Minimize instead of app exit", when enabled, will hide the window properly. We might not be calling the right sequence when just minimizing.
@droidmonkey I've been looking in the protocol for a workaround but couldn't find anything sadly... There is no way to figure out if the application is being minimised. The only option seems to be waiting for wayland to add it to the protocol...
It's working for me on Arch Linux with kwayland 5.82.0 and kwayland-{integration,server} 5.21.5.
@runiq I'm sorry, but that is impossible. There is no way of checking with the wayland protocol if the application is being minimised.
Can you make sure it is running under wayland? Try running keepassxc from a terminal, it may show errors like these:
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
When keepassxc is launched, launch xeyes. When hovering your mouse over an X11 application the eyes should move, if it's running under wayland they won't.
You can try to force it to run with wayland like this:
$ QT_QPA_PLATFORM=wayland keepassxc
I misread—I thought the problem was a different one. Terribly sorry for the noise. :(
Happens to everyone, no problem :slightly_smiling_face:
I opened this bug in Wayland bugtracker: https://gitlab.freedesktop.org/wayland/wayland/-/issues/337
I installed Wayland and sway compositor on my system today and i have same issue. I think it's not releated to KDE.
If i run keepassxc with QT_QPA_PLATFORM=wayland keepassxc
(to be sure it runs on wayland) i have same issue as OP:
Toggle window
option on the system tray icon does always work to hide/show keepassxc window.If i run keepassxc with QT_QPA_PLATFORM=xcb keepassxc
(to run on x):
This is almost surely a qwayland bug
In case anyone missed the mention, the "Minimize instead of app exit" behavior works fine for me as a workaround.
In KDE Plasma there is also the option to use window rules ("Configure Special Application Settings"). I'm trying it with these:
it's a won't fix in qt upstream https://bugreports.qt.io/browse/QTBUG-74310
I'm really getting the sense that Wayland needs to live its own life and be wrapped by a much more useful protocol that implements all manner of desktop centric actions (including accessibility support). This should be implemented with a standard approval / security protocol.
Does finally implemented global keyboard shortcut portal (mentioned here: https://github.com/keepassxreboot/keepassxc/issues/2281#issuecomment-1183006029) improve situation with that bug?
Not in the slightest
Overview
Keepassxc doesn't minimise to system tray on KDE with Wayland. The window minimises properly, but is still visible on the taskbar. Some other remarks:
Toggle window
option on the system tray icon does always work.Steps to Reproduce
Expected Behavior
The window shouldn't be visibible on the taskbar.
Actual Behavior
The window is still visible on the taskbar.
Context
It works on a different system with Gnome 40 with Wayland.This is not true, it fallbacks to X11:Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
KeePassXC - Version 2.6.4 Revision: 34a78f0 Qt: 5.15.2
Operating System: Linux (Fedora 34) Desktop Env: KDE 5.21.5 Windowing System: Wayland