VS Codium does not respect global menus
Describe the bug The application does not integrate with or respect the global menu system in the desktop environment. Instead of exporting its menus to the global menu bar, it displays its menus within the application window
Please confirm that this problem is VSCodium-specific
- [x] This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.
Please confirm that the issue/resolution isn't already documented
- [x] I checked the Docs page and the Troubleshooting page and my issue is not mentioned there.
To Reproduce Steps to reproduce the behavior:
- Open a session in a desktop environment that supports global menus (e.g., GNOME, KDE Plasma, or Unity).
- Launch the application
- Check if the application's menu options are available in the global menu bar.
Expected behavior The application should integrate with the global menu system and export its menus, enabling users to interact with them through the global menu bar provided by the desktop environment.
Actual Behavior The application does not export its menus to the global menu bar.
Screenshots
What it currently looks like (from vs codium):
What it should actually look like (from vs code):
Desktop (please complete the following information): OS: [Arch Linux] Architecture [x64] Version: 1.96.0 Commit: 138f619c86f1199955d53b4166bef66ef252935c Date: 2024-12-16T11:38:33.840Z Electron: 32.2.7 ElectronBuildId: undefined Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Linux x64 6.12.4-arch1-1 App Manager: [yay] Sandboxed [N/A]
I forgot to mention, I tried the troubleshooting steps, but pacman could not find any of the mentioned packages. So what do?
Currently having the same issue on VSCodium Flatpak on KDE with Wayland
I have this exact problem using the fedora package of VSCodium on KDE 6.2.5 Wayland. The problem doesn't happen on XWayland, only native Wayland for me.
I eventually looked into this more because some of my other applications started behaving in the same way. Turns out, it is an known bug with GTK apps under wayland sessions. https://bugs.kde.org/show_bug.cgi?id=424485. Needed wayland protocol: see https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/52
There is a workaround, but it is not a very good one as it requires forcing the app to run under x11. This can be done with setting the ENV variable for the program to GDK_BACKEND=x11
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!
Still affected
Have you tried to change the "window.titleBarStyle" setting?