element-desktop: Element doesn't work well with native Wayland
Changelog: https://www.electronjs.org/docs/breaking-changes#planned-breaking-api-changes-140
I’ve just tried running Element in native Wayland mode (--enable-features=UseOzonePlatform --ozone-platform=wayland) and it seems that currently breaks Element entirely in smoe circumstances (had the window be fully transparent at startup once, and in general it goes all white when trying to join a Jitsi conference). All my apps using Electron 14 as well as Chromium seem to run fine with these flags so I hope once Element upgrades it will work too 😃
Being able to run Element natively under Wayland would have many advantages, most notably proper HiDPI support in wayland-based desktop environments.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 11
- Comments: 31 (9 by maintainers)
I tried with a dev build of element-desktop + element-web 1.9.8. It worked with my locally-installed electron from the arch linux repository while segfaulting with
node_modules/.bin/electron. Both report version 16.0.6… Anyways I guess this means I can properly enjoy element desktop as a native desktop app once the next release is done and the element-desktop arch package updated 😊That wasn’t intentional. What I wanted to actually comment is that all my Electron apps except VSCode (for some reason) have regressed on this, and are now segfaulting at start (albeit only if
--ozone-platform=waylandis explicitly set). “Bare” Chromium, like VSCode, works. I guess I should try building vector-im/element-desktop#299 and see whether that works.Relevant upstream bug might be https://github.com/electron/electron/issues/31885.
fedora 35 has a repo for element which unfortunately does not work (anymore) because element needs a newer version of electron. workaround (at the moment) is to pass --disable-seccomp-filter-sandbox as start parameter, see vector-im/element-web#19329
I tested it on my machine and it seems like element-desktop crashes with
only when trying to run it with latest electron22 on Arch Linux. I installed
electron{17, 19, 20, 21}and running Element manually withelectron<VERSION> /usr/lib/element/app.asar --disable-dev-mode --enable-features=UseOzonePlatform --ozone-platform=waylandworks.https://github.com/vector-im/element-desktop/pull/299 upgrades to Electron 16 which will hopefully close this issue out.
not sure what happened but the latest version from taw (fedora repository for element) does not require --disable-seccomp anymore, so i guess that has been updated and my problem is solved
You understood it correctly, for me it is only a Wayland issue, not a Fedora issue.
Yes
Have you checked the corresponding Chromium changelogs?
Sure, will try tomorrow.
Where can I read more about these issues with Jitsi? Could an upgrade to Electron v15 be done directly? (that’s based on Chromium 94)