-
Notifications
You must be signed in to change notification settings - Fork 360
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
Support Wayland natively #3062
Comments
On F35/GNOME 41, using fractional scaling: Works fine, but titlebars missing and cursor way too small, both of which are already being worked on upstream IIRC |
Thanks for reporting this! Do you have links to the upstream issues? |
I believe the missing titlebars is related to this issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/217 |
Yeah, looks like support is being worked on in election itself though. electron/electron#29618 |
I am having some small and strange difficulties using the Mullvad GUI app with Wayland on KDE (KDE Plasma version 5.23.5, KDE Frameworks version 5.90.0, Qt version 5.15.2) on OpenSUSE Tumbleweed (rolling release up to date, kernel 5.16) With the titlebar on the bottom of the screen, as is standard for most systems and people, clicking the systray icon to open the app works fine. Once open everything in the app works fine by the way. I understand that this is not something you can fix now, fix easily, or maybe you can't fix it at all, but all I ask is that when making the transition to a Wayland-compatible GUI, you test the clicking of the icon in the systray with the taskbar in various locations of your screen. That would be much appreciated! |
Thanks for reporting! Most of the Wayland compatibility is probably in Electron and Chromium itself. We basically just have to wait and see. |
Looks like Electron 17 might improve the Wayland support. But another flag is needed: signalapp/Signal-Desktop#3411 (comment) |
Good news. In case various flags are needed for Wayland support of the app, I hope this will be well documented when the next version is released. |
Any update ? Xwayland work well but the security concern over X remain (much more on critical security app like VPN). |
@BirdInFire As faern wrote in the initial message, the current app version supports Wayland but you'll have to supply some arguments. As for the issue electron/electron#32650, which to my knowledge is the only thing blocking us from making it deafult, it's now merged and released as part of Electron 17 but we haven't updated yet. We'll hopefully update pretty soon. |
Thanks do you have an idea of witch version will have this ? (the one in beta or the next one ? (or yet another)). |
@BirdInFire The current beta does not have Electron 17 and therefore doesn't have the window decorations fix. We haven't started updating to Electron 17 yet. If everything goes smoothly it shouldn't be a big project but we've been blocked from updating in the past due to bugs in Electron and I don't know yet whether or not this version will work smoothly for us. |
I'm trying to evaluate Mullvad, but I'm unable to get the app to work at all in Fedora 35 Gnome with Wayland. It works fine if I don't use Wayland. I just get a black box where the app should be. I've tried two betas and every workaround I could find here and it still isn't working. It sounds like others are having minor issues, but for me it doesn't work at all even with the latest beta I could find (2022.1-beta1). So when you have a new beta with Electron 17 I'd like to try it. Or if there are other workarounds to get current Fedora 35 with Wayland to work I'd love to try them. |
We recently upgraded to Electron 17 in our master branch (#3388). But now Wayland support seems completely broken. I suspect this is the issue: electron/electron#32436 |
It looks like this is fixed in 17.3.1 and 18.0.1 |
We've now update the master-branch to Electron 18.0.3 which means that Wayland support is working again. There are still a bunch of issues that prevents us from making it default when running Wayland unfortunately, here's the two issues I ran into in the short time I tested it:
|
The |
For Gnome title bar often : --enable-features=WaylandWindowDecorations do the jobs. |
Couldn't we detect which ones do work en enable wayland by default on runtime? The XDG_SESSION_DESKTOP environment variable is useful for this. |
@aruiz We'll investigate which compositors Electron works well on and see if we can add the flags automatically based on a blocklist/allowlist. |
We just merged the PR to enable native Wayland by default on window managers known to work well only. We took a quite conservative approach. Since we know the Electron + Wayland support is pretty unstable on some WMs/DEs we only enable it on a specified allowlist. We started with just If you run this app in another WM as native Wayland (manually adding |
@MahouShoujoMivutilde @johns2s We're currently in the process of upgrading to Electron 21 which has improved Wayland support. When that's done we'll look into enabling it for all compositors. If that isn't possible we'll try to add Hyprland and Gnome to the list. |
@MahouShoujoMivutilde Hyprland has now been added to the list of compatible compositors. This will be part of the next release of the app. |
I'm running the .desktop file with |
Running successfully on Ubuntu 23.10 using flags
|
/opt/Mullvad\ VPN/mullvad-vpn --ozone-platform=wayland
/opt/Mullvad\ VPN/mullvad-vpn --ozone-platform=wayland --enable-features=WaylandWindowDecorations
/opt/Mullvad\ VPN/mullvad-vpn --enable-features=UseOzonePlatform --ozone-platform=wayland
/opt/Mullvad\ VPN/mullvad-vpn --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations All result in my minimise, maximise, and close buttons being in the top right corner of the window name, instead of the top left corner, Ubuntu 24.04, "Ubuntu on Wayland" With Ubuntu 24.04, "Gnome Classic on Wayland" this doesn't happen, and it shows correctly. |
@LinuxEnthusiast99 what WM/DE are you using? |
This was on Ubuntu 24.04, Gnome 46. |
Is there anything left to get this enabled? Ubuntu 24.04 and can see Mullvad VPN still running on Xwayland. |
Wayland is more and more replacing X. More and more people want to run a Wayland native desktop. Most Linux GUI programs run well under Wayland these days. This issue is for tracking the Wayland support in the Mullvad VPN app GUI.
Current status
The latest stable release,
2021.5
, runs on Electron 11. There is no Wayland support in Electron 11, it was introduced in Electron 12.The
master
branch in this git repository is using Electron 15. So the next release we make will support Wayland. However, you will need to supply some rather long arguments to the app to make it start in native Wayland mode:Goal
In a future release we hope to modify
/opt/Mullvad VPN/mullvad-vpn
in such a way that it will automatically detect if Wayland is being used, and then automatically add the arguments needed to run the app in native Wayland mode.The text was updated successfully, but these errors were encountered: