vscodium icon indicating copy to clipboard operation
vscodium copied to clipboard

VS Codium does not respect global menus

Open SrS2225a opened this issue 1 year ago • 7 comments

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

To Reproduce Steps to reproduce the behavior:

  1. Open a session in a desktop environment that supports global menus (e.g., GNOME, KDE Plasma, or Unity).
  2. Launch the application
  3. 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): image

What it should actually look like (from vs code): image

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]

SrS2225a avatar Dec 17 '24 02:12 SrS2225a

I forgot to mention, I tried the troubleshooting steps, but pacman could not find any of the mentioned packages. So what do?

SrS2225a avatar Dec 17 '24 02:12 SrS2225a

Currently having the same issue on VSCodium Flatpak on KDE with Wayland

CeruleanDerpo avatar Dec 28 '24 17:12 CeruleanDerpo

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.

ratnik2 avatar Jan 23 '25 04:01 ratnik2

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

SrS2225a avatar Mar 12 '25 15:03 SrS2225a

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!

github-actions[bot] avatar Sep 09 '25 01:09 github-actions[bot]

Still affected

CeruleanDerpo avatar Sep 09 '25 07:09 CeruleanDerpo

Have you tried to change the "window.titleBarStyle" setting?

daiyam avatar Sep 09 '25 08:09 daiyam