Default GNOME "Web Browser" on Solaris 10
By Darrenmoffat-Oracle on Feb 10, 2005
When using GNOME on Solaris 10 the default Launch menu has an entry for "Web Browser". Unfortunately that is actually hardcoded to run mozilla. This means that when a user changes their preferred browser using "Preferences -> Desktop Preferences -> Preferred Applications", it doesn't have any effect on that menu entry. A workaround for this is to use very simple script like this:
#!/bin/ksh exec $(gconftool-2 -g /desktop/gnome/applications/browser/exec) "$@"This script needs to be in the users path and named "mozilla" (even when the default browser is something else), and it needs to be found before the real mozilla, which is in /usr/sfw/bin/mozilla. For example I have ~/bin my $PATH before /usr/sfw/bin, so putting it in ~/bin works for me. The script is far from complete but it was enough to allow me to choose "/usr/local/firefox/firefox" as my browser in "Preferred Applications" and have it take effect for the launch button. It also means that other applications, even non GNOME ones that search my PATH for mozilla will now use firefox instead.