-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeePassXC does not show in Alt+Tab under GNOME Wayland until StartupNotify times out #6423
Comments
I think this can be fixed by changing: Line 62 in 805574c
to call: Application::setApplicationName("org.keepassxc.KeePassXC"); and then changing the
Another option would be to rename the Both solutions should work under both X11 and Wayland, but I'm not sure if either would have undesired side effects. EDIT: Maybe renaming the |
This is stupid, but thank you for finding this problem. |
I think just changing StartupWMClass to the reverse DNS pattern should be sufficient. Does X11 even care about that attribute? |
Good question. I'll try that out really quick. |
By only making the:
change, it works properly in Wayland. KeePassXC shows up in Alt-Tab immediately. On X11, KeePassXC still immediately shows up in Alt+Tab, but gnome-shell's looking glass shows the window as untracked: likely because |
We can also just do |
I can test that out really quickly. Do you know if that would have other side effects in Qt? |
The docs state it is only used in this specific use case:
|
Might there also be a better attribute to put in the desktop file for Wayland's use? I feel like this would be a problem for a lot of applications. |
I wasn't able to find a better attribute unfortunately, but maybe I missed something. This would indeed be a problem for a lot of applications, but it seems most Qt applications don't meet all these conditions:
The only other program I have installed that behaves this way is KDE's Konsole. |
I still don't know if |
Yep, looks like this is a known issue on GNOME + Wayland: https://gitlab.gnome.org/GNOME/mutter/-/issues/1330 I think this can be closed, unless KeePassXC would be willing to work around this issue with |
Looks like startup notifications will be properly supported by a new I'm going to close this issue since KeePassXC is not doing anything incorrectly. |
Great! Now I'm upset I deleted my comment blaming Gnome itself. |
FWIW, there has been an update on this from GNOME's side, see also this ticket, especially this reply and this reply. If I understood correctly, this means that since the previous posts, |
Overview
KeePass currently does not show in Alt+Tab under GNOME Wayland until
StartupNotify
(from the.desktop
file) times out. I suspect this is because of the naming differences between the X11WM_CLASS
and Wayland/xdg-shell'sapp_id
.Under X11, I believe the Qt XCB platform plugin uses
QCoreApplication::applicationName()
to set theWM_CLASS
property. KeePassXC'sWM_CLASS
is:Under Wayland, qtwayland uses the
.desktop
filename to set theapp_id
: https://github.com/qt/qtwayland/blob/20d7cc45933a4a26c886b47c0b69da82195e7204/src/client/qwaylandwindow.cpp#L159-L163 Thus, the value is set toorg.keepassxc.KeePassXC
. This can be confirmed by using gnome-shell's "looking glass" feature:Because KeePassXC's
.desktop
file specifies:it will never match under a Wayland session.
Steps to Reproduce
.desktop
fileExpected Behavior
KeePassXC should immediately show up in the Alt+Tab list.
Actual Behavior
KeePassXC is missing from Alt+Tab list until
StartupNotify
times out.Context
Operating System: Fedora 34 (also reproducible under 33)
Desktop Env: Gnome
Windowing System: Wayland
The text was updated successfully, but these errors were encountered: