Skip to content

About

Gnome Browser Switcher is a Gnome Shell extension that provides a quick way to switch your default browser via the system tray. The extension uses standard Gnome Shell APIs to integrate with the panel and GIO/GSettings to manage system browser settings.

Resources

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

Gnome Browser Switcher

Browser Switcher Icon

One-click default browser switching from the Gnome Shell panel

Installation • Features • Requirements • Development • Support


Features

Feature Description
🚀 Simple & Fast One-click browser switching
🎯 Zero Configuration Works out of the box
🪶 Lightweight No external tools or dependencies
🔄 Auto-Detection Finds installed browsers, including Flatpak, and picks up installs and removals
🎨 Native Integration Matches Gnome Shell design, sets the same defaults as GNOME Settings
👁️ Always Accurate Follows default browser changes made in GNOME Settings or by the browser itself

Use Case

Perfect for users who work with different browser profiles for different tasks — for example, separate work and personal SSO authentication.

Screenshot

Installation

From extensions.gnome.org (Recommended)

https://extensions.gnome.org/extension/8836/browser-switcher/

Manual Installation

  1. Download the latest release from Releases

  2. Install and enable:

gnome-extensions install browser-switcher@totoshko88.github.io.shell-extension.zip
gnome-extensions enable browser-switcher@totoshko88.github.io
  1. Restart Gnome Shell:
    • Wayland: Log out and log back in
    • X11 (GNOME 49 and earlier): Press Alt+F2, type r, press Enter

Uninstallation

gnome-extensions disable browser-switcher@totoshko88.github.io
gnome-extensions uninstall browser-switcher@totoshko88.github.io

Requirements

  • Gnome Shell 45–51
  • At least one web browser with a valid .desktop file

How It Works

Browser Detection: Lists the applications registered as x-scheme-handler/http handlers through Gio.AppInfo, which covers system, user and Flatpak installs. Applications whose .desktop file declares categories without WebBrowser are skipped. Duplicate entries of the same browser (e.g. google-chrome.desktop and google-chrome-stable.desktop) are shown once.

Default Browser: Selecting a browser makes it the handler for x-scheme-handler/http, plus x-scheme-handler/https, text/html and application/xhtml+xml when the browser declares them. This is the same set GNOME Settings changes under Apps → Default Apps → Web.

If the current default is a hidden handler, such as the userapp-Firefox-*.desktop file Firefox creates when it makes itself the default, it is listed too, so the menu and the panel icon always show the real default.

Change Tracking: The menu and panel icon update when browsers are installed or removed and when the default changes outside the extension.

Panel Icon Appearance

Open Browser Switcher's Preferences from Extension Manager and use Desaturate panel icon to choose whether only the system-panel icon is shown in grayscale. The choice is saved and takes effect immediately; browser icons in the menu retain their color.

Development

Local Testing

# Automated checks: BrowserManager against the installed browsers (on a copy of
# mimeapps.list) and a headless GNOME Shell smoke test (GNOME Shell 50+)
tests/run-tests.sh

# Lint (ESLint 9+ flat config)
npx eslint@10 .

# Try the extension in a nested Shell window (GNOME Shell 49+);
# on Wayland, disable/enable does not reload changed code in the running Shell
gnome-extensions pack --force --extra-source=browserManager.js \
  --extra-source=indicator.js --extra-source=menuBuilder.js \
  --schema=schemas/org.gnome.shell.extensions.browser-switcher.gschema.xml .
gnome-extensions install --force browser-switcher@totoshko88.github.io.shell-extension.zip
dbus-run-session gnome-shell --devkit

# View logs
journalctl -f -o cat | grep "Browser Switcher"

Building Release

gnome-extensions pack --force --out-dir=. \
  --extra-source=browserManager.js \
  --extra-source=indicator.js \
  --extra-source=menuBuilder.js \
  --schema=schemas/org.gnome.shell.extensions.browser-switcher.gschema.xml .

Contributing

Contributions welcome! Please ensure:

Support

If you find this extension useful, consider supporting development:

Monobank Donatello

License

GPL-3.0 — Made with ❤️ in Ukraine 🇺🇦

About

Gnome Browser Switcher is a Gnome Shell extension that provides a quick way to switch your default browser via the system tray. The extension uses standard Gnome Shell APIs to integrate with the panel and GIO/GSettings to manage system browser settings.

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages