gnome-terminal in Debian ignores the default browser

2011-11-15

You change Gnome's preferred application for the web browser, but gnome-terminal still opens the old one when you right-click the links?

I switched back from chromium-browser to firefox, but pidgin and gnome-terminal kept opening chromium inspite the fact that:

  • I changed Gnome settings in System → Preferences → Preferred Applications
  • I changed x-www-browser using sudo update-alternatives --config x-www-browser
  • I changed gnome-www-browser using sudo update-alternatives --config gnome-www-browser

Gnome Terminal (and Pidgin, and some other apps) ignored every system configuration setting I was aware of. The corresponding Ubuntu bug was closed as invalid.

I found a workaround in a Debian bug report. These lines in ~/.local/share/applications/defaults.list solved my issue:

x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop

What is it, yet another configuration layer?