FS#70912 - [code] Enable startup flags for Wayland

Attached to Project: Community Packages
Opened by Áron Ricardo Perez-Lopez (CyanoKobalamyne) - Sunday, 16 May 2021, 20:02 GMT
Last edited by Toolybird (Toolybird) - Friday, 28 April 2023, 06:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Electron 12 (and VS Code, as of 1.56) works on Wayland if the --enable-features=UseOzonePlatform and --ozone-platform=wayland flags are passed to the binary at runtime. It would be nice if the startup script detected if it was running on Wayland (e.g. via checking for WAYLAND_DISPLAY) and added the necessary flags. Right now, this can be done manually on the terminal, but launching via the provided desktop file doesn't work at all.

Additional info:
* code 1.56.2-2
* upstream issue: https://github.com/microsoft/vscode/issues/109176

Steps to reproduce:
* launch code on Wayland
* crashes before showing a window with a core dump
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 28 April 2023, 06:01 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Please use the per-user flags option as per the Wiki. See also  FS#74607 
Comment by Mynacol (mynacol) - Monday, 28 June 2021, 14:34 GMT
For now you can add the flags in $HOME/.config/electron12-flags.conf (see /usr/bin/electron12).
With this method, all electron12 applications use native wayland, no matter how you launch them.
Comment by Áron Ricardo Perez-Lopez (CyanoKobalamyne) - Monday, 05 July 2021, 10:12 GMT
Ah, thank you, that's great!

Loading...