vscodium icon indicating copy to clipboard operation
vscodium copied to clipboard

Can't run in wayland

Open Ma5t3rful opened this issue 2 years ago • 24 comments

Describe the bug Can't run in wayland with this flags codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland ms-vscode on the other hand does work normally

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 my issue is not mentioned there.

To Reproduce Steps to reproduce the behavior:

  1. install as snap
  2. try to open as wayland

codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland

Expected behavior vscode wayland window

Screenshot image

Desktop (please complete the following information):

  • OS: Ubuntu 23.04
  • Architecture: x86_64
  • Version: 1.82.2
  • App Manager: Snap
  • Sandboxed: Snap (classic mode)

Additional context Both vscode and vscodium print two warning messages but vscodium refuses to pop up.

Ma5t3rful avatar Sep 20 '23 14:09 Ma5t3rful

A similar issue here in arch with flatpak version, however vscodium on arch repo work great

but my warning is:

Warning: 'ozone-platform-hint' is not in the list of known options, but still passed to Electron/Chromium.

Desktop

  • OS: Arch Linux
  • Architecture: x86_64
  • Version: 1.82.0.23250
  • App Manager: flatpak
  • Sandboxed: flatpak

ls1w avatar Sep 20 '23 20:09 ls1w

Same issue; cannot reliably reproduce the issue after attempting to run with gdb.

  • OS: Gentoo with Linux 6.5.4
  • Architecture: amd64
  • Version: 1.82.2.23257
  • App Manager: Portage
  • Sandboxed: no

mcendu avatar Sep 21 '23 08:09 mcendu

i have the same issue the app quite after 2 seconds

rxmmah avatar Sep 22 '23 23:09 rxmmah

similar issue here when vscodium is run in native wayland, it just immediately closes

negativeExponent avatar Sep 23 '23 00:09 negativeExponent

EDIT: Sorry, I only now realize I posted this in the vscodium bugtracker, not the one for the flatpak.

RalfJung avatar Sep 23 '23 07:09 RalfJung

Been having this issue for a while now, first on Arch, then on NixOS

DrymarchonShaun avatar Sep 24 '23 23:09 DrymarchonShaun

Been having this issue for a while now, first on Arch, then on NixOS

and there are no solutions for it online, this is strange.

rxmmah avatar Sep 26 '23 17:09 rxmmah

Have you tried with the setting (VSCodium's settings.json) "window.titleBarStyle": "custom"? (from https://github.com/microsoft/vscode/issues/184124)

daiyam avatar Sep 26 '23 18:09 daiyam

Have you tried with the setting (VSCodium's settings.json) "window.titleBarStyle": "custom"? (from https://github.com/microsoft/vscode/issues/184124)

Yeah, I'm not sure if it helped. The issue is inconsistent either way, so it's hard to tell if it did anything.

DrymarchonShaun avatar Sep 27 '23 17:09 DrymarchonShaun

@daiyam Yes I tried it in both native and custom. It didn't change anything. same issue

Ma5t3rful avatar Sep 27 '23 21:09 Ma5t3rful

Same issue here. Suddenly vscodium not working any longer.

Tried re-installing after a purge with apt, tried previous version, all to no avail.

Running debian KDE under wayland on x64.

Any way around this? Or do I need install another IDE?

I found the answer: running from the console with the follwing as suggested by Master811129] above works for me. "codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland"

I also changed the menu accordingly and that works as well!

Thanks @Master811129

MidGe48 avatar Oct 03 '23 23:10 MidGe48

Same issue here. Suddenly vscodium not working any longer.

Tried re-installing after a purge with apt, tried previous version, all to no avail.

Running debian KDE under wayland on x64.

Any way around this? Or do I need install another IDE?

I found the answer: running from the console with the follwing as suggested by Master811129] above works for me. "codium --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland"

I also changed the menu accordingly and that works as well!

Thanks @Master811129

You can run as xwayland instead wayland, this work for me at list, you can run on x11 session too

ls1w avatar Oct 05 '23 10:10 ls1w

You can run as xwayland instead wayland

So far this is the only thing that has solved this for me.

DrymarchonShaun avatar Oct 06 '23 03:10 DrymarchonShaun

Using custom title bar style solved the problem for me. I also use the --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland start options.

xotakfr avatar Oct 23 '23 13:10 xotakfr

Any update on this? Is there one setting somewhere to make this work regardless of whether you open the app from terminal or GUI? Anyone willing to share a solution and perhaps update the documentation?

madhums avatar Nov 15 '23 23:11 madhums

Arch linux and Sway, Xwayland is working but with:

--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland

The Codium window closes immediately and the process is ended.

dR3b avatar Nov 22 '23 12:11 dR3b

Arch linux and Sway, Xwayland is working but with:

--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland

The Codium window closes immediately and the process is ended.

For me, it doesn't close immediately, but as soon as I move a mouse cursor over any part of its window.

TenEXP avatar Dec 01 '23 07:12 TenEXP

@loulou310 Thank you, it worked for me! However I had a little issue, could you explain for dummies how to make those flags persist? It's not ideal to type them every time I want to lunch vscodium.

omnigenous avatar Dec 31 '23 00:12 omnigenous

@loulou310 Thank you, it worked for me! However I had a little issue, could you explain for dummies how to make those flags persist? It's not ideal to type them every time I want to lunch vscodium.

You can edit the .desktop file. They are located in /usr/share/applications. Then in the file, in front of Exec, you can see the command that is executed to launch the app. You can add the flags before the %F. Also, lower in the file there's another Exec that is for new windows, I believe you need to change it here too.

xotakfr avatar Dec 31 '23 00:12 xotakfr

upstream VSCode doesn't have this issue so what is it doing differently? apart from telemerty 😂

regulator-g avatar Jan 16 '24 09:01 regulator-g

I actually had this issue earlier and fixed it, but another one arose: the window was tiny inside my window, when i moved my mouse to the bottom left of the full window it showed that it was registering mouse events at the real pos but rendering as a tiny window

Hellscaped avatar Jan 21 '24 04:01 Hellscaped

Same issue here on EndeavourOS (Arch)

VSCodium installed from AUR, no combination of CLI options works to force Wayland

Version: 1.85.2 Release: 24019 Commit: c8a36a69377856369f139f39ee56dd3838130fbf Date: 2024-02-03T22:34:16.729Z Electron: 25.9.7 ElectronBuildId: undefined Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Linux x64 6.7.4-arch1-1

JFincher42 avatar Feb 13 '24 15:02 JFincher42

It looks like the Issue has been fixed for me in 1.87.0.

Version: 1.87.0
Release: 24060
Commit: 5695cc889d3d0500fa6c7983468a699185fce828
Date: 2024-02-29T23:06:19.600Z
Electron: 27.3.2
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 6.5.0-21-generic snap

Ma5t3rful avatar Mar 01 '24 09:03 Ma5t3rful

its appears that wayland mode is indeed working. built from Arch-AUR

negativeExponent avatar Mar 01 '24 12:03 negativeExponent