Created
November 15, 2023 10:02
-
-
Save twysto/23790adc965e5c9c278f19e7ab702bb8 to your computer and use it in GitHub Desktop.
Ubuntu default browser from Firefox (default) to Brave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First, check if the `brave.desktop` file is present in `/usr/share/applications`. | |
If not, just create a symlink like that: | |
``` | |
ln -s /snap/brave/current/meta/gui/brave.desktop /usr/share/applications/brave.desktop | |
``` | |
Then edit the `default.list` file: | |
``` | |
sudo nano /usr/share/applications/defaults.list | |
``` | |
Change this: | |
``` | |
x-scheme-handler/http=firefox.desktop; | |
x-scheme-handler/https=firefox.desktop; | |
``` | |
To that: | |
``` | |
x-scheme-handler/http=brave.desktop; | |
x-scheme-handler/https=brave.desktop; | |
``` | |
And voilà! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment