"Hide window to Systray" not working in KDE on Linux?
Have you searched for an existing issue?
- [x] Yes, I tried searching and reviewed the pinned issues
Brief Summary
The Hide window to system tray when minimised option has no effect on my system (KDE Plasma 6 on EndeavourOS).
Steps to Reproduce
- Run KeePassXC (I have it set to start at login and minimise after start)
- Open the main window
- Set the options follows-
- Minimise instead of app exit: TRUE
- Show a systray icon: TRUE
- Hide window to system tray when minimised: TRUE
- Save the settings
- Minimise the main window using the icon ("v") on the main window decoration
KPXC minimises to a taskbar/panel icon in the default way for KDE applications, ignoring the "Hide window to system tray when minimised" option.
Expected Versus Actual Behavior
I have KPXC settings set as follows-
- Minimise instead of app exit: TRUE
- Show a systray icon: TRUE
- Hide window to system tray when minimised: TRUE
Expected Behaviour
- When the main application window is open, selecting either the close icon ("X") or the minimise icon ("v") on that window should close the main window leaving only the systray icon visible.
- Double-clicking the systray icon subsequently should re-open the main window
Actual Behaviour
- Close (X) works as expected, but minimise (v) just minimises the application to a taskbar/panel icon. The setting "Hide window to system tray when minimised" has no effect.
- When KPXC is in the "minimised to the panel" state, clicking or double-clicking on the systray icon has no effect, the user has to either interact with the icon in the panel instead, or right-click on the systray icon and choose "Toggle window". The latter option (toggle window) sometimes needs to be used twice to get the main KPXC window to open.
After many years of using KeePass2 and now KPXC my muscle memory is trained to use the systray icon only, this gets me every time when I want to open the application and need to go looking for the panel icon instead.
KeePassXC Debug Information
KeePassXC - Version 2.7.10 Revision: b342be4
Qt 5.15.17 Debugging mode is disabled.
Operating system: EndeavourOS CPU architecture: x86_64 Kernel: linux 6.16.7-arch1-1
Enabled extensions:
- Auto-Type
- Browser Integration
- Passkeys
- SSH Agent
- KeeShare
- YubiKey
- Secret Service Integration
Cryptographic libraries:
- Botan 3.9.0
System Configuration Operating System: EndeavourOS KDE Plasma Version: 6.4.5 KDE Frameworks Version: 6.18.0 Qt Version: 6.9.2 Kernel Version: 6.16.7-arch1-1 (64-bit) Graphics Platform: Wayland Graphics Processor: AMD Radeon RX 6700 XT
These problems are always an issue with the desktop environment. Could be KDE causing this issue, could be the system tray plugin, etc.
I can at least reproduce it, though I never noticed, because I always use the x button to close to tray.
These problems are always an issue with the desktop environment. Could be KDE causing this issue, could be the system tray plugin, etc.
KDE on Debian Sid here. Working as expected, always has.
I have this problem on many operating systems. I was looking for an issue here and I'm surprised that this one is that recent. It is reproducible on two machines with debian 13 & keepassxc 2.7.10, and another with fedora42 & keepassxc.x86_64 2.7.10-2.fc42, i'm using kde on those systems
Hide windows to system tray doesn't work so I have to find keepassxc minimized to get it in foreground right click + toggle window on the system tray icon does hide the application right click + toggle window again and KeepassXC is in foreground a click on system tray icon does nothing when the app is in panel bar.
I have this problem on many operating systems. I was looking for an issue here and I'm surprised that this one is that recent. It is reproducible on two machines with debian 13 & keepassxc 2.7.10, and another with fedora42 & keepassxc.x86_64 2.7.10-2.fc42, i'm using kde on those systems
Hide windows to system tray doesn't work so I have to find keepassxc minimized to get it in foreground right click + toggle window on the system tray icon does hide the application right click + toggle window again and KeepassXC is in foreground a click on system tray icon does nothing when the app is in panel bar.
Debian Sid here, see attached image. The black portion is a partial screenshot of a full-screen terminal I had open.
I have this problem on many operating systems. I was looking for an issue here and I'm surprised that this one is that recent. It is reproducible on two machines with debian 13 & keepassxc 2.7.10, and another with fedora42 & keepassxc.x86_64 2.7.10-2.fc42, i'm using kde on those systems Hide windows to system tray doesn't work so I have to find keepassxc minimized to get it in foreground right click + toggle window on the system tray icon does hide the application right click + toggle window again and KeepassXC is in foreground a click on system tray icon does nothing when the app is in panel bar.
Debian Sid here, see attached image. The black portion is a partial screenshot of a full-screen terminal I had open.
I believe @plop28 was indicating that the "Hide window to system tray when minimised" options wasn't working, i.e. reproducing the issue I originally raised.
They were not saying (I don't think) that the systray icon doesn't appear at all, just that the application does not respond correctly to attempts to configure it so that it swaps between the full window and the systray icon ONLY when using any of the usual minimise/close/double-click to open gestures.
These problems are always an issue with the desktop environment. Could be KDE causing this issue, could be the system tray plugin, etc.
If this is definitely a problem with either the UI library (Qt?) or KDE itself then i'm prepared to log a bug with the appropriate team, however I suspect they will come back and ask for details that only the KPXC developers can provide, along the lines of-
- Which sequence of library calls and parameters is being used to achieve the "minimise to systray and eliminate the panel icon" functionality
- Some test data (e.g. maybe from earlier versions of Qt and KWin) showing where this sequence works, compared with examples of version combos where it fails
- Some indication (if possible) of where the problem might lie. I .e. is it in Qt, or the window manager, or elsewhere?
It seems that this is at least a somewhat reproducible issue (thanks to the other contributors for their experiences), but it needs some inside knowledge to look for the root cause.
Hello,
Like smss2022, I couldn't reproduce the problem in KUbuntu 25.04 with KDE Plasma 6.4.5 in X11 and KeepassXC 2.7.10 installed via apt.
If the "Hide window to system tray when minimized" is ticked, clicking the 'v' to minimize it puts the app in the systray and the taskbar icon disappears.
When the option is not ticked, the icon stays in the taskbar.
Perhaps is it a "Wayland" or flatpack/snaps problem ?
Note : I've configured my systray to always show keepassxc's icon and not hide it behind the "^" menu in the systray.
Hello,
Like smss2022, I couldn't reproduce the problem in KUbuntu 25.04 with KDE Plasma 6.4.5 in X11 and KeepassXC 2.7.10 installed via apt.
If the "Hide window to system tray when minimized" is ticked, clicking the 'v' to minimize it puts the app in the systray and the taskbar icon disappears.
When the option is not ticked, the icon stays in the taskbar.
Perhaps is it a "Wayland" or flatpack/snaps problem ?
Note : I've configured my systray to always show keepassxc's icon and not hide it behind the "^" menu in the systray.
In my case i'm using a directly installed copy of KeePassXC, not snap or flatpak. However I am running Wayland so maybe that (with the associated windows manager) is relevant.
I can confirm that the problem only appears under wayland. x11 is fine.
For now, as a workaround, keepassxc can be started with -platform xcb to start it with x11 backend
Exec=keepassxc -platform xcb %f
Since upgrading to KDE plasma 6.5 (Wayland) a week or two ago, I'm now getting this issue. For me, it was actually fine until around the time of that upgrade. Same issue with the Nextcloud Talk desktop app. Both lost their ability to minimize to the tray only (without a duplicated taskbar icon). Too new to Linux desktop to know where the buck stops here!
Definitely stops with the KDE team
My case with KDE was solved in #12681
