darren_moffat@blog$ cat /dev/mem | grep /dev/urandom

« Whats this lofs... | Main | Encrypting files in... »

20050210 Thursday February 10, 2005

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. ( Feb 10 2005, 03:35:47 PM GMT ) Permalink Comments [1]

Trackback URL: http://blogs.sun.com/darren/entry/default_web_browser_on_solaris
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 11, 2005 at 12:19 AM GMT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Valid HTML! Valid CSS!


follow darrenmoffat at http://twitter.com
Get OpenSolaris  Use OpenOffice.org

This is a personal weblog, I do not speak for my employer.