To change the default browser in Ubuntu, open Settings, go to Default Applications, and pick your browser from the Web drop-down. On Ubuntu 22.04 and later the Settings app is the quickest route; on older releases or minimal installs you may need to use the command line. The change takes effect for links clicked in other apps, in the dock, and in the system's own help links. You do not need to reinstall anything or reboot, though some apps only pick up the new default after they are restarted.

What You'll Need

  • An Ubuntu desktop session (these steps are for the GNOME desktop that ships with standard Ubuntu; Kubuntu, Xubuntu and other flavours use their own settings apps, though the command-line method works on all of them).
  • The browser you want to set as default already installed. If it is not, install it from Ubuntu Software or the browser maker's official download page first.
  • A terminal window for the fallback method (Ctrl+Alt+T opens one).

Step-by-Step

Menu labels can differ slightly between Ubuntu versions and desktop flavours, so if a label does not match exactly, look for the closest equivalent.

  1. Open Settings. Click the system menu in the top-right corner of the screen and choose Settings, or search for "Settings" in the Activities overview.
  2. Go to Default Applications. In the left sidebar, click Default Applications. On some versions this section is called Default Apps or is found under a Details heading.
  3. Find the Web section. You will see a Web drop-down listing the browsers Ubuntu knows about. Click it.
  4. Select your browser. Choose the browser you want from the list. The setting saves immediately; there is no Apply button.
  5. Test it. Open a link from another app, such as a link in an email or a document, and confirm it opens in the browser you chose.
  6. If your browser is not in the list, use the terminal. Open a terminal and run xdg-settings set default-web-browser firefox.desktop, replacing firefox.desktop with the desktop file name of your browser. Common names are google-chrome.desktop, chromium-browser.desktop and brave-browser.desktop. You can list installed candidates with ls /usr/share/applications | grep -i browser.
  7. Verify the command-line change. Run xdg-settings get default-web-browser. It should print the desktop file you just set. If it does, the system default is correct even if an individual app still opens something else.

Common Mistakes

  • Setting the default inside the browser only. Most browsers have their own "make default" button, but on Ubuntu that button sometimes fails silently because the system setting is separate. Set it in Settings first, then use the browser's own button as a second check.
  • Using the wrong desktop file name. The command-line method needs the exact .desktop filename, not the browser's display name. "Google Chrome" is google-chrome.desktop, not chrome.desktop.
  • Expecting every app to follow immediately. Some applications cache the default browser at launch. Close and reopen the app before concluding the change did not work.
  • Confusing the default browser with the default email or calendar app. They are separate entries in the same Default Applications panel; changing one does not change the others.
  • Assuming a snap or Flatpak browser behaves identically. Sandboxed packages can have their own portal-based handling of links. If links from other apps open the wrong browser only for a sandboxed app, check that app's own settings as well.

Tips

  • Keep at least one browser installed that you did not set as default. If your default browser breaks after an update, you can still open a page to search for a fix.
  • After changing the default, open the browser's own settings and look for its default-browser check. Many browsers show a prompt on launch if they are not the system default; clearing that prompt confirms the system agrees.
  • On Ubuntu flavours such as Kubuntu or Xubuntu, the system settings app is different, but the xdg-settings command works the same way across desktops.
  • If you manage several user accounts on one machine, the default browser is set per user. Changing it in your account does not affect other accounts.

Troubleshooting

Links still open the old browser. First close and reopen the app you clicked the link in. If that does not help, run xdg-settings get default-web-browser in a terminal to see what the system thinks the default is. If it shows the old browser, repeat the terminal set command from Step 6. If it shows the new one, the problem is in the individual app, not the system setting.

The browser is missing from the Settings drop-down. This usually means its desktop entry is not installed in a location the system reads, which is common with manually extracted browser archives. Reinstall the browser from Ubuntu Software or the maker's official package, then reopen Settings. As a fallback, the terminal method in Step 6 often works even when the drop-down does not list the browser.

The command reports an error about the desktop file. Check the exact filename with ls /usr/share/applications | grep -i browser and copy it precisely, including the .desktop extension. Filenames are case-sensitive.

Nothing changes after a reboot. Confirm you edited the setting in the same user account you are logged into. Then check whether a configuration tool or a sync service is restoring old settings; some backup tools restore application defaults on login.

A sandboxed app ignores the system default. Snap and Flatpak apps may route links through the desktop portal. Make sure the app is updated, and check whether it has its own internal setting for opening links. If it still ignores the default, that is a limitation of the app rather than of Ubuntu.

Frequently Asked Questions

Does changing the default browser require a restart?

No. The setting applies immediately for new link opens. Only apps that were already running may need to be closed and reopened.

Can I set a different default browser for each user account?

Yes. The default browser is a per-user setting, so each account on the machine can have its own.

Why does my browser still ask to be made the default?

The browser checks the system default on launch. If it still prompts, the system setting likely did not save; set it again in Settings or with xdg-settings.

Does this work on Ubuntu Server?

Ubuntu Server has no desktop session, so there is no default browser in the desktop sense. The xdg-settings command may exist but has no visible effect without a desktop environment.

Will changing the default browser affect my bookmarks or passwords?

No. Bookmarks, history and saved passwords stay with each browser and are not touched by the default setting.

How do I check the current default from the terminal?

Run xdg-settings get default-web-browser. It prints the desktop file name of the current default browser.