Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

How to set default browser in unix REBOL/View

 [1/3] from: rjk:bigpond at: 30-Oct-2001 21:46


I am trying REBOL/View under unix (SCO Openserver 5.0.6) and the browse command does not launch my browser (Netscape 4.7). Is the location/name of the default browser built into View, and if so, where/what does it look for? Alternatively, how can I specify the default browser that View should use? Regards, Robert Kovacic

 [2/3] from: nitsch-lists:netcologne at: 30-Oct-2001 16:59


RE: [REBOL] How to set default browser in unix REBOL/View /usr/local/bin/netscape works here. had to link it by hand because /usr/X11R6/bin/netscape (by suse6.4) does not work ;-) i hacked a little perl-script to use konqueror, saved it as /usr/X11R6/bin/netscape : #!/usr/bin/perl #netscape -remoteopenURL(/home/volker/rebol/view/local/index.html, new-window) $_="@ARGV"; print "args $_ \n"; if (/.*\((.*),/){ print "browse $1 \n"; `konqueror 2>/dev/null --silent $1`; } elsif (/.*\((.*)\)/){ print "browse $1 \n"; `konqueror 2>/dev/null --silent $1`; } else{ print "browse $_ \n"; `konqueror 2>/dev/null --silent $_`; } -Volker [rjk--bigpond--com] wrote:

 [3/3] from: jtp:dok at: 30-Oct-2001 18:59


On Tue, Oct 30, 2001 at 09:46:07PM +1100, Robert Kovacic wrote:
> I am trying REBOL/View under unix (SCO Openserver 5.0.6) and the browse > command does not launch my browser (Netscape 4.7). Is the location/name of > the default browser built into View, and if so, where/what does it look for? > Alternatively, how can I specify the default browser that View should use? > > Regards, Robert Kovacic >
Since I just posted this same question earlier in the day, and received a fairly quick answer, I'll go ahead and volunteer the information I was given by Jeff Kreis <[jeff--rebol--net]>. To quote Jeff: To find the browser, Unix REBOL/View pays attention to the MOZILLA_HOME environment variable. Failing that, it looks for netscape in /usr/local/bin and /usr/bin. Yes, the unix browser determining algorithm is rather simple minded. So for me, setting MOZILLA_HOME to /opt/gnome/lib/mozilla did the trick. Yes, it's simple, but what matters is that it works. Hope this helps, and thanks to Jeff as well. .troy --- /************************/ /* J. Troy Piper */ /* <[jtp--dok--org]> */ /* Ignotum per Ignotius */ /************************/