Linux: Window WM_CLASS is "code" while code.desktop StartupWMClass is "Code", causing taskbar icon mismatch on Cinnamon
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.128.1
- OS Version: Linux Mint 22.x Cinnamon (X11)
Steps to Reproduce:
1. Install VS Code from the official Microsoft APT repository.
2. Launch VS Code.
3. Pin the application to the Cinnamon panel (optional).
4. Open VS Code.
### Expected Behavior
The running window should be associated with the VS Code launcher and use the Visual Studio Code icon in the taskbar.
### Actual Behavior
The running window is not associated with the launcher. Cinnamon creates a second taskbar entry using a generic/settings icon instead of the VS Code icon.
### Additional Information
Running `xprop WM_CLASS` on the VS Code window returns:
```text
WM_CLASS(STRING) = "code", "code"
```
The desktop entry installed with VS Code contains:
```text
StartupWMClass=Code
```
Notice the case difference (`code` vs `Code`). This appears to prevent Cinnamon from matching the running window to the launcher.
Contributor guide
Assessment
This issue has not been assessed yet.