-
Notifications
You must be signed in to change notification settings - Fork 39
Rework wayland logic by using ELECTRON_OZONE_PLATFORM_HINT
environment variable
#607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Started test build 99593 |
Build 99593 successful
|
Started test build 99839 |
Started test build 99846 |
Build 99839 successful
|
Build 99846 successful
|
Started test build 101697 |
Build 101697 successful
|
Started test build 103056 |
Rebased against master |
Build 103056 successful
|
@bermeitinger-b it would be great to merge this after rebase since it would allow setting global env variable for flatpak apps that people on wayland could use until chrome enables it by default. |
Thanks. Could you rebase again? I guess that it should also be able to remove both x11 and wayland sockets and use x11 as fallback. We tried this a while back and electron was not working. |
If @xduugu won't rebase it for a few days I'll create a PR. |
Window decorations on wayland are enabled by default since electron v28 [1]. [1] electron/electron#39582
This uses the new environment variable `ELECTRON_OZONE_PLATFORM_HINT` [1], which is available since electron v28 [2]. [1] https://www.electronjs.org/docs/latest/api/environment-variables#electron_ozone_platform_hint-linux [2] electron/electron#39792
Prefer electron's new environment variable `ELECTRON_OZONE_PLATFORM_HINT` instead.
Rebased again, @bermeitinger-b. |
bot, build |
Queued test build for org.signal.Signal. |
Started test build 132570 |
Build 132570 successful
|
Do we need to expose the variable in the yml file? |
I don't think so since IMO it's supposed to be global override for all Electron apps by default. If someone changes flatseal permissions he probably understands what he does. |
Thank you. Would have been a good choice to use the beta branch. But let's see what happens. |
@bermeitinger-b we forgot to try adding |
We can try another PR for this. X11 never had any problem with any setting. It always was Wayland. |
Good to know, I didn't remember that from a few months ago. I'll create PR soon. |
@bermeitinger-b from what I can see it was related to input methods not working with wayland. I've tried checking the upstream electron issue on this and I feel like it's probably not ready yet. There were some successes on Chrome but I don't think it will work with electron. Should we try anyway? |
From the past tries, when we made the linter happy, numerous issues with Wayland arose. From my understanding, the fallback to Xwayland let's it run. How about a PR and we'll wait for merging? |
No description provided.