Mullvad Browser on Wayland

Mullvad Browser defaults to using X11/Xwayland, which is inherently insecure. As it’s based on Firefox it can be used on Wayland without any compatibility issues with the following command

MOZ_ENABLE_WAYLAND=1 ./start-mullvad-browser --detach

But can anyone tell me how exactly I make this flag permanent? I tried adding the flag to the .desktop file but with no success.

Also a note: Should applications and especially browsers perhaps have an explanation on how to run them on Wayland?

The line starting with “Exec” should be as follows:

Exec=env MOZ_ENABLE_WAYLAND=1 ./start-mullvad-browser --detach

You pointed me in the right direction, but in this case the Exec line needs to stay the same, while the X-MullvadBrowser-ExecShell needs to be modified. Thanks.

Hi, please elaborate. What did you edit? Thanks!