What's wrong with Brave on Linux Fedora 42?

I am using Fedora Workstation 42.

I installed Brave via the terminal instructions provided by Brave, instead of the Flathub in Software app on fedora OS.

It keeps crashing, It won’t open, just spins like its’ trying to open but fails. This has happened before a few months ago so I moved to Firefox (yuk!) for a while and next time I tried Brave it worked again.

It’s a real pain. I can’t get Brave to open at all. Ran all updates etc, no change. Click the Brave icon, some spinning of mouse pointer for 5-10 seconds, then it stops and Brave doesn’t open.

I opened Software app and found Brave, but it looks like a no entry sign, suggesting it can’t run on this system but I know it can and usually does:

Curiously, I searched for Brave again in Software app and I see there is a flathub version which I DO NOT have installed. I could try installing it, but the reason I use terminal to install it is because I used Flathub version a year or two ago and had problems, and I think advice on here was to use your terminal instructions to install it manually, which is what I did.

Grateful for any advice, I hate having to use FireFux :slight_smile:

I think that Fedora defaults to Wayland – can you try launching Brave with the X11 flag? Full Terminal command would be:

brave-browser --ozone-platform=x11

It depends on desktop environment but for Fedora 43 with Gnome all packages are Wayland only and X11 was removed entirely, for KDE Wayland has been the default since version 34 but it still has X11, I think if he is on Gnome when he updates from Fedora 42 to Fedora 43 X11 will no longer work. Flathub should work.

Sorry, I don’t really follow this. I am not sure this is the issue though as it intermittently works then doesn’t work for a while, then works again.

I am a new Linux user, very little knowledge, no idea what X11 or Wayland means! I could update to Fedora 43, if there’s a suggestion that may fix the issue?

Thanks

@NoMoreFirefox x11 and Wayland are display server protocols for Linux systems that allow the display server to communicate with GUI clients. In simpler terms – it helps your system display stuff correctly on the screen.

The command I shared above (as well as the new one’s I’ll suggest below) basically forces the browser to use a specific platform. I believe it expects x11 by default (although I have to verify this) which is why I suggested the above. Here is what you can try:

Find out which protocol you’re using currently
Launch the Linux Terminal and type the following command:

echo $XDG_SESSION_TYPE

If the output shows Wayland:

Try forcing x11
Launch the Linux Terminal and type in the command:

brave-browser --ozone-platform=x11

Hit enter and see if the browser launches successfully.


If the outlook shows X11:

Try setting Brave to default to use Wayland
If the above doesn’t work, try changing the flag to have the browser default to Wayland by opening the Terminal again and typing:

brave-browser --enable-features=UseOzonePlatform --ozone-platform=wayland

Hit enter and see if the browser launches.

Let me know what you find out.

Thanks. I am not on the machine now, but it was set up exactly like my own which I am using now. I entered the command (echo $XDG_SESSION_TYPE) and it says Wayland for me, so I suspect it will be the same for the other machine, but I will confirm when I can get to it later or tomorrow

1 Like