How to set up Google Chrome as default browser in Xubuntu

I use Xubuntu 12.04. I uninstalled Firefox and now use Google Chrome version 19.xxx.

To solve this problem, I tried:

  • galternatives

  • the "default apps" under settings and

  • sudo update-alternatives --config x-www-browser

Neither of these worked. Does anybody have an alternative solution for this?

--> Solution: I used the "sudo gedit /usr/share/applications/defaults.list" tip from 天使の and searched for firefox in the whole document! Everytime I found "firefox" I replaced it with "google-chrome.desktop". I also used the "default apps" menu to change it to google-chrome. And now it works.. I hope it helps some other ;-)


SOLVED:

Listen, the easy way to do this is open xfce4-settings-manager as root either with

sudo bash
xfce4-settings-manager

or

gksu xfce4-settings-manager

then select preferred apps, and under browsers select other then paste:

/usr/bin/X11/chromium-browser

close it and you are good for all users, forever. :D


Maybe use this way

gksudo gedit /usr/share/applications/defaults.list

try to find x-www-browser and set its value to your google-chrome.desktop location

EDIT

if you won't find x-www-browser, then try to search for


text/html=firefox.desktop;google-chrome.desktop
text/xml=firefox.desktop;google-chrome.desktop
application/xhtml_xml=google-chrome.desktop
x-scheme-handler/http=firefox.desktop;google-chrome.desktop
x-scheme-handler/https=firefox.desktop;google-chrome.desktop
x-scheme-handler/ftp=google-chrome.desktop

First I tried replacing firefox with chromium-browser everywhere in this document:

gksudo gedit /usr/share/applications/defaults.list

It didn't work. Still Firefox would open my documents rather than Chromium.

Then I did this alternative:

sudo update-alternatives --config x-www-browser

Got three alternatives:

0 - auto
1 - manual Chromium-browser
2 - manual Firefox

I selected 0. Now it works!