ITADN

Incorrect StartupWMClass in Flatpak desktop file causes missing/wrong taskbar icon on Linux Mint Cinnamon

#21627OpenChrisB85 创建于 2026-07-02
bugdesktop
C
ChrisB85commented
### Steps To Reproduce ### Summary On Linux Mint Cinnamon, the Flatpak version of Bitwarden exports a desktop entry with an incorrect StartupWMClass. Because of that, Cinnamon does not always associate the Bitwarden window with the correct panel/taskbar icon. ### Suggested fix Please update the Flatpak desktop entry so that StartupWMClass matches the real WM_CLASS of the Bitwarden window. ### Expected Result The exported Flatpak desktop file should use a StartupWMClass that matches the actual Bitwarden window class, so desktop environments such as Cinnamon can correctly associate the window with the proper launcher/icon. ### Actual Result After a recent update, Bitwarden started showing incorrect behavior in the panel/taskbar: when Bitwarden is launched, it may appear without an icon on the panel/taskbar after minimizing to tray and restoring, the icon appears when another Flatpak tray application is running (in my case, Teams for Linux), Bitwarden's panel icon can be replaced by the Teams icon, even though clicking it still opens Bitwarden This appears to be caused by a mismatch between the exported desktop file and the actual X11 window class. Actual window class Running: xprop WM_CLASS and clicking the Bitwarden window always returns: WM_CLASS(STRING) = "bitwarden", "Bitwarden" Exported desktop file The Flatpak desktop entry contains: StartupWMClass=com.bitwarden.desktop However, that does not match the actual window class. ### Screenshots or Videos _No response_ ### Additional Context This issue became especially visible when running another Flatpak tray app (Teams for Linux), but Bitwarden is the app with the mismatched StartupWMClass. ### Workaround I created a local override of the desktop file and changed: StartupWMClass=com.bitwarden.desktop to: StartupWMClass=Bitwarden After that change, the panel/taskbar icon association works correctly. ### Operating System Linux ### Operating System Version Mint 22.3 ### Installation method Flatpak ### Build Version 2026.6.1 SDK 'main (c5d5bba)' Shell 39.8.5 Renderer 142.0.7444.265 Node 22.22.1 Architecture x64 ### Issue Tracking Info - [ ] I understand that work is tracked outside of GitHub. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
5 条评论