vscodium: can't use wayland flags anymore
On Arch/sway, Electron 14.0.1-1 Happening with both vscodium 1.60.1-2 and vscodium-bin-1.60.1-3
recently, everytime I launch codium --enable-features=UseOzonePlatform --ozone-platform=wayland
app is crashing with
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium
full log with codium --verbose --log=TRACE --enable-features=UseOzonePlatform --ozone-platform=wayland
https://gist.github.com/kushraj/b8793aee0881c078e5974cd81b253038
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (3 by maintainers)
This issue has returned as of version:
No flags work, actually. They all report some variation of
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
EDIT: This Arch package bug report for Electron could be related.
The wayland flags still need to be used to enable wayland, but the error still comes up:
JFYI, v1.66.0 is using electron v17.2.0. The next release might use v17.3.0.
@bugrasan vscode migrated to 17.3.0 which does not cover the wayland fix, it was introduced in 17.3.1
You can workaround this issue with this until electron version gets bumped:
vscodium --enable-features=UseOzonePlatform --ozone-platform=wayland --log debug --log debug
Let’s keep it opened since the issue haven’t been really fixed. So other users can find it more easily.
The issue was fixed in electron 13.6.9 but VSCode (as of 1.65) uses 13.5.2 for packaging. This can be resolved by bumping the electron target defined in .yarnrc and package.json. I have managed to run the wayland flags with custom prepare step of arch’s vscodium 1.65.0-1 PKGBUILD, it’s not perfect but it should work while waiting for migration to higher electron target.
It seems it is not related to the Arch bug report (fix arrived yesterday). I still have the bug after updating electron13.