Full Native Wayland Support for Linux

The linux version of the Bitwarden Desktop Application still runs only on X11 and has no proper support for Wayland-only desktops. Wayland is now ubiquitous and many Linux users are switching from X11. In fact, new Linux distro installations now are defaulting to Wayland. So, Bitwarden should prioritize Wayland support.

This is blocked by an upstream electron bug under Gnome+Wayland: Resize window doesn't work on Wayland · Issue #44543 · electron/electron · GitHub . As soon as the upstream bug is fixed, Wayland will be made default ([PM-10448] Enable wayland where possible in Linux Desktop by quexten · Pull Request #10359 · bitwarden/clients · GitHub), but until then it has to remain disabled.

It’s been 4 months and the Electron developers have yet to acknowledge the issue. I don’t think this will be fixed upstream any time soon. Maybe this could be fixed within Bitwarden’s end?

It’s only fixable in Electron or Gnome. The issue is present on all electron apps that have an up-to-date electron version, and are on wayland instead of Xwayland.

The best that could be done on Bitwarden’s side would be detecting gnome specifically and only falling back to Xwayland on gnome.

Perhaps having the Bitwarden client detect if the DE is Gnome or not and adjusting whether to run in Wayland or Xwayland might be a good temporary solution, especially since it only affects that DE particular. Flatpak has the fallback to X11 permission, we could fallback to X11 for Gnome. Whenever Electron or Gnome developers fix the bug, then we remove the conditional DE checker and maybe the fallback X11 permission.

While you wait, this can be achieved via ELECTRON_OZONE_PLATFORM_HINT=wayland, which works quite well. I’ve been using that for the past year and haven’t had any issues so far (Hyprland)