-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Brave won't start with "Preferred Ozone platform" flag set to "Wayland" on snap package (Ubuntu) #25074
Comments
This is due to snap security profiles. Firefox doesn't work either |
Actually on Firefox Snap beta channel (v105) on Ubuntu 22.04 absolutely everything works out of the box, including Wayland gestures pinch to zoom, swipe left/right for back/forward. |
This also works with the snapped Chromium, including gestures. Workarounds are either to install Brave through a PPA, but this messes with the system and offsets the security and isolation benefits of the snap version, or to use the snap version with Xwayland, which results in a blurry mess for those who require fractional scaling. I hope this will be fixed. |
Checking in to +1 this issue. cat /etc/os-release
PRETTY_NAME="Ubuntu 22.10"
NAME="Ubuntu"
VERSION_ID="22.10"
VERSION="22.10 (Kinetic Kudu)"
VERSION_CODENAME=kinetic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=kinetic
LOGO=ubuntu-logo env | grep -E "XDG|WAYLAND"
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_MENU_PREFIX=gnome-
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_SESSION_CLASS=user
XDG_RUNTIME_DIR=/run/user/1001
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop brave --enable-features=UseOzonePlatform -ozone-platform=wayland
[160935:160935:1115/204520.995265:ERROR:wayland_connection.cc(224)] Failed to connect to Wayland display: No such file or directory (2)
[160935:160935:1115/204520.995297:ERROR:ozone_platform_wayland.cc(220)] Failed to initialize Wayland platform
[160935:160935:1115/204520.995299:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
[1115/204520.997186:ERROR:ptracer.cc(567)] ptrace: Input/output error (5)
[1115/204520.997261:ERROR:ptracer.cc(567)] ptrace: Input/output error (5)
[1115/204521.015611:ERROR:elf_dynamic_array_reader.h(64)] tag not found
/snap/brave/187/opt/brave.com/brave/brave-browser: line 48: 160935 Trace/breakpoint trap (core dumped) "$HERE/brave" "$@" |
This issue seems fixed on archlinux
|
Description
If I set "Preferred Ozone platform" to "Wayland" in
brave://flags
, Brave won't be able to start anymore.Brave (1.42.97) was installed as a snap package on Ubuntu 22.04 (wayland is set as default). On same version of Brave installed using apt package manager from Brave apt repository I can enable this flag without any problems.
Reason why I want this flag enabled is so I can get gestures (Wayland) working (pinch too zoom) and being able use Brave rewards on Wayland (related: #13833, #9592).
Steps to Reproduce
brave --enable-features=UseOzonePlatform -ozone-platform=wayland
or
Actual result:
Running brave in terminal will return following error:
Expected result:
Brave will start.
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
Version/Channel Information:
As mentioned above, this problem doesn't exist when Brave is installed using apt package manager.
The text was updated successfully, but these errors were encountered: