Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Not opening browser when clicking "Goto-page"

Marcoh Larsen
Registered User
Join date: 11 Dec 2006
Posts: 27
10-24-2008 11:56
Hi,

You know these blue boxes where you can click on "Goto Page" to open a browser (most of the time external) and directly goto the mentioned page.

From version 1.21.6 I cannot get SecondLife to open-up an external browser. I've set the BROWSER-environment variable to /usr/bin/firefox (openSuse 11.0), but still it doesn't show-up.

Anybody has any ideas?

Thanks,
Marcoh
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
10-25-2008 07:19
I am having the same problem. i think it's to do with OpenSuse 11 rather than SL, since versions of the viewer that certainly did open pages for me before I updated from 10.3 won't open them now I'm on 11, but, whatever the cause, I would be very grateful indeed if anyone has any suggestions about fixing it.
Timos Albatros
Registered User
Join date: 28 Feb 2008
Posts: 5
10-25-2008 22:03
this happened to me after I installed and purged opera.. I was able to work around it..

edit the launch_url.sh file in your favorite text editor (in your secondlife directory, wherever it is)

look for the following section and comment it out as I have here. DON'T comment out whatever browser you like to use - firefox works fine for me, so I leave it uncommented.
I know, it's just a workaround, but I hope it helps..

# if $BROWSER is defined, use it.
#XBROWSER=`echo "$BROWSER" |cut -f1 -d:`
#if [ ! -z "$XBROWSER" ]; then
# XBROWSER_CMD=`echo "$XBROWSER" |cut -f1 -d' '`
# # look for $XBROWSER_CMD either literally or in PATH
# if [ -x "$XBROWSER_CMD" ] || which $XBROWSER_CMD >/dev/null; then
# # check for %s string, avoiding bash2-ism of [[ ]]#
# if echo "$XBROWSER" | grep %s >/dev/null; then
# # $XBROWSER has %s which needs substituting
# echo "$URL" | xargs -r -i%s $XBROWSER &
# exit
# fi
# $XBROWSER has no %s, tack URL on the end instead
# $XBROWSER "$URL" &
# exit
# fi
# echo "$0: Couldn't find the browser specified by \$BROWSER ($BROWSER)"
# echo "$0: Trying some others..."
#fi

# else kfmclient
# (embodies KDE concept of 'preferred browser')
#if which kfmclient >/dev/null; then
# kfmclient openURL "$URL" &
# exit
#fi

# else x-www-browser
# (Debianesque idea of a working X browser)
#if which x-www-browser >/dev/null; then
# x-www-browser "$URL" &
# exit
#fi

# else opera
# (if user has opera in their path, they probably went to the
# trouble of installing it -> prefer it)
#if which opera >/dev/null; then
# opera "$URL" &
# exit
#fi

# else firefox
if which firefox >/dev/null; then
firefox "$URL" &
exit
fi



(edited: apparently I missed a couple of commented lines in the orriginal posting here - all should be commented as shown below.)
From: someone

# fi
# $XBROWSER has no %s, tack URL on the end instead
# $XBROWSER "$URL" &
# exit
# fi
# echo "$0: Couldn't find the browser specified by \$BROWSER ($BROWSER)"
# echo "$0: Trying some others..."
#fi
Marcoh Larsen
Registered User
Join date: 11 Dec 2006
Posts: 27
10-26-2008 02:59
Thanks,

This is a usable workaround! I've edited the launch_browser.sh and it works.

Regards,
Marcoh
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
10-26-2008 05:45
Not working for me, I am afraid. Sorry to be so hopeless, but all I really know about Linux is that it runs so much faster and better on my pc than Windows XP ever did... exactly where, and how, do I set the BROWSER-environment variable, assuming Firefox is installed in its default location?
Timos Albatros
Registered User
Join date: 28 Feb 2008
Posts: 5
10-26-2008 12:08
That's getting into a plethora of possible answers.
Although I'm not sure it's the problem on your pc, I believe the most universal answer would be to edit or create a ~/.profile file (a simple text file in your home directory called .profile << must have the period at the front of the name.)
add a line with the following:

export BROWSER=/usr/bin/firefox

(if you're not sure where your firefox resides, you can type 'which firefox' at a command prompt in most distributions of linux.)

log out and log back into your pc. it shouldn't be necessary to reboot.


Hope it helps.
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
10-30-2008 07:59
Thanks for the help and sorry for the delayed reply.

I've done as Timos suggested, but with no success. And, yes, 'which firefox' does indeed return /usr/bin/firefox . And, indeed, typing firefox http://secondlife.com/ at the command prompt in my SL folder causes firefox to open that the SL website. So, indeed, does entering $BROWSER http://secondlife.com/.

But URLs refuse to open in-world for me, either in firefox or the viewer's internal browser.

Me mystified.
Timos Albatros
Registered User
Join date: 28 Feb 2008
Posts: 5
11-04-2008 12:39
I'm afraid I'm out of tricks for you to try with this.. sorry for the delayed response =/