Skip to content

Instantly share code, notes, and snippets.

@twysto
Created November 15, 2023 10:02
Show Gist options
  • Save twysto/23790adc965e5c9c278f19e7ab702bb8 to your computer and use it in GitHub Desktop.
Save twysto/23790adc965e5c9c278f19e7ab702bb8 to your computer and use it in GitHub Desktop.
Ubuntu default browser from Firefox (default) to Brave
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