desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Linux wayland

Open GarboMuffin opened this issue 3 years ago • 8 comments

Electron has some level of Wayland support now, so let's make sure that all the environments we package the app in can run in wayland. My understanding is it still uses XWayland by default but there are flags to force wayland -- let's make sure those work.

Latest electron-builder added an option to allow wayland in snap package

Also see if we can make Wayland work in the flatpak package

GarboMuffin avatar Jul 11 '22 17:07 GarboMuffin

That option is used to enable wayland support on Linux, but it makes it crash.

>>> turbowarp-desktop --ozone-platform-hint=auto
Crash dumps will be saved to /home/aspizu/.config/turbowarp-desktop/Crashpad
update checker: checked for update too recently
[19503:0100/000000.316494:ERROR:gpu_init.cc(521)] Passthrough is not supported, GL is egl, ANGLE is 
[1]    19465 segmentation fault (core dumped)  turbowarp-desktop --ozone-platform-hint=auto

(Wayland is needed for touchscreen and HiDPI support)

aspizu avatar Dec 31 '22 08:12 aspizu

What distro are you using? If it's Arch, we use the system's electron20 package which is quite a bit behind upstream now.

GarboMuffin avatar Dec 31 '22 08:12 GarboMuffin

My distro is Fedora Linux 37 (KDE Plasma) and I've used the tarball package to install TurboWarp manually.

aspizu avatar Dec 31 '22 09:12 aspizu

Same problem here, using the

--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto

args makes the app not start

Enderteck avatar Mar 10 '24 03:03 Enderteck

I've hunted it down, it's a weird Electron bug. Gonna work around it and get a nice report sent upstream

GarboMuffin avatar Mar 10 '24 08:03 GarboMuffin

Wayland will work in 1.11.0-beta.6 or 1.11.0 stable, whichever is first

GarboMuffin avatar Mar 10 '24 09:03 GarboMuffin

Thank you so much.

aspizu avatar Mar 10 '24 14:03 aspizu

Nice !

Enderteck avatar Mar 10 '24 15:03 Enderteck