After reading a thread on the inherent security of some of the major browsers, I decided to give Brave another run (haven't used it since it first came out). Initially it looks to be a very good browser - time will tell.
The problem that I have is that even though I set Brave to be the default browser in its configuration page, every time I start the browser up I get a flag with a button asking me to make Brave the default browser.
I've checked on git-hub & they think that they have fixed this long running problem. They obviously haven't.
Something else I should add, is that I tried to install brave via the MX-Package Install app' but it just crashed the app - frozen? So I installed the stable version via the Brave website.
[SOLVED] How to make Brave Browser the default browser?
[SOLVED] How to make Brave Browser the default browser?
Last edited by handy on Sat Apr 11, 2020 8:58 am, edited 1 time in total.
MSI: MAG B560 TORP', i5, RAM 16GB, GTX 1070 Ti 12GB, M2 238GB + USB, MX-23 Fb to Openbx
Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-23 Fb - Openbx
Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-23 Fb - Openbx
Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-23 Fb - Openbx
Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-23 Fb - Openbx
Re: How to make Brave Browser the default browser?
Perhaps this way:handy wrote: Fri Apr 10, 2020 7:30 pm After reading a thread on the inherent security of some of the major browsers, I decided to give Brave another run (haven't The problem that I have is that even though I set Brave to be the default browser in its configuration page, every time I start the browser up I get a flag with a button asking me to make Brave the default browser.
First tell Xfce's exo system the perferred web-browser by opening
Code: Select all
exo-preferred-applications
Next fix the xdg-mime confusion made by the offering of the browser of selecting this browser as the default by running this:
Code: Select all
set -x; D=brave-browser.desktop; A=/usr/share/applications ; xdg-mime default $D $(sed -n '/^MimeType=/{s/MimeType=//; s/;/\n/g;p}' $A/$D ); set +x
Perhaps, somewhere else somthing overlooked ...

Re: How to make Brave Browser the default browser?
fixed a typo - or two :lipsrsealed:
- andyprough
- MX Packager
- Posts: 919
- Joined: Tue Jul 23, 2019 10:16 pm
Re: How to make Brave Browser the default browser?
That's strange, it installed through the MX Package Installer so well for me yesterday. I remember thinking that the devs have really improved the Brave experience on MX since I had tried it last. I wonder why MXPI was crashing?handy wrote: Fri Apr 10, 2020 7:30 pmSomething else I should add, is that I tried to install brave via the MX-Package Install app' but it just crashed the app - frozen? So I installed the stable version via the Brave website.
Primary Computer - Commodore 64: Processor - MOS 6510/8500, 1.023MHz; Memory - 64kb RAM, 20kB ROM - 8k BASIC V2, 8k Kernel, 4k Character ROM; Display output - 320x200, 16 colours; OS - BASIC V2.0; Weight: 1.8kg
Re: How to make Brave Browser the default browser?
@fehlix, wow, damn good reply that! :D
I didn't even know that the Xfce exo system even existed, let alone that it would be on my Openbox custom job.
The path that I needed to use for (at least) the Brave website install was /opt/brave.com/brave/brave-browser
Then I ran your slick xdg mime confusion killing sed line (whether I needed to or not - I didn't check after the exo thing) & rebooted Openbox, started up Brave & there was no make me default flag anymore. :D
Thank you very much for your time & input fehlix. Very much appreciated.
I didn't even know that the Xfce exo system even existed, let alone that it would be on my Openbox custom job.
The path that I needed to use for (at least) the Brave website install was /opt/brave.com/brave/brave-browser
Then I ran your slick xdg mime confusion killing sed line (whether I needed to or not - I didn't check after the exo thing) & rebooted Openbox, started up Brave & there was no make me default flag anymore. :D
Thank you very much for your time & input fehlix. Very much appreciated.

MSI: MAG B560 TORP', i5, RAM 16GB, GTX 1070 Ti 12GB, M2 238GB + USB, MX-23 Fb to Openbx
Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-23 Fb - Openbx
Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-23 Fb - Openbx
Lenovo: Ideapad 520S, i5, RAM 8GB, GPU i620, HDD 1TB, MX-23 Fb - Openbx
Clevo: P150SM-A, i7, RAM 16GB, nVidia 8600, 2x 1TB HDD & M.2 256 GB, MX-23 Fb - Openbx
- Head_on_a_Stick
- Posts: 919
- Joined: Sun Mar 17, 2019 3:37 pm
Re: [SOLVED] How to make Brave Browser the default browser?
If you mean this thread then please note that the issue was one of privacy rather than security, the two are not synonymous.handy wrote: Fri Apr 10, 2020 7:30 pmAfter reading a thread on the inherent security of some of the major browsers
How about /etc/alternatives/x-www-browser?
If MX set the default browser in exo-preferred-alternatives and ~/.config/mimeapps.list to /usr/bin/x-www-browser then Debian's alternatives system could be used to change the default browser for all applications with a single action. No need for complicated sed commands then :-)
Admittedly it would be more complicated to then add "foreign" browsers like Brave but that's what galternatives is for.
mod note: Signature removed, please read the forum rules