Default GNOME "Web Browser" on Solaris 10

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.
Comments:

Thanks! That workaround will suffice until I can understand how to customize some of these Gnome menus properly. For example, I'd like the "Log off" action to offer "Shut down" and "Reboot" to <u>any</u> appropriately-authorized user, not just root.

Posted by Geoff Arnold on February 10, 2005 at 04:19 PM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

DarrenMoffat

Search

Categories
Archives
« July 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today