Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Passing cmd line arguments to Linux client

Yuu Nakamichi
Registered User
Join date: 16 Oct 2006
Posts: 11
10-19-2006 23:57
Unfortunately I am not in front of the linux setup in question right now, so I'm sorry if this turns out trivial :-o

- I need to pass two environment variables to the Linux client in order to get it to use the ESD sound system (the client hangs at login otherwise). So from within the SecondLife application folder, I can invoke the startup script as follows:

LL_BAD_ALSA=x LL_BAD_OSS=x ./secondlife



- Two questions: Can I use a ./secondlife -set <variable> <value> syntax instead, i.e. something like

CODE
./secondlife -set LL_BAD_ALSA=x LL_BAD_OSS=x



- Is there (can I create) a settings file similar to arguments.txt for the Windows/Mac clients where I can dump my command line arguments / environment vars in one place (and stop typing them out for the umpteenth time)

Many thanks :-)
Hello Toonie
Registered User
Join date: 25 Jul 2005
Posts: 212
10-20-2006 00:27
From: Yuu Nakamichi

- Is there (can I create) a settings file similar to arguments.txt for the Windows/Mac clients where I can dump my command line arguments / environment vars in one place (and stop typing them out for the umpteenth time)
You can edit the 'secondlife' script, is that what you mean?
Yuu Nakamichi
Registered User
Join date: 16 Oct 2006
Posts: 11
10-20-2006 00:37
Hm - as I said I can't look at the script right now, sorry. So I don't know what the script looks like. It would be fantastic if you could post an adjusted version of the script here.. :-)

Also, can somebody comment on the -set <variable> <value> command option? The LSL wiki with the list of command line options doesn't really help, unfortunately..

----

I suppose I could just wrap my env vars into a script, drop it into /usr/local/bin or ~/bin and add it to the panel launcher; this way, no fiddling with the startup script (but I would still need to change the new script to point at the correct folder when Tofu releases a new version) but.. I am still interested to hear about command line options..
Kel Hartunian
Reformed Solipsist
Join date: 6 May 2006
Posts: 28
10-20-2006 08:29
I'd say put any extra goodies you want in the secondlife script itself.

Tofu already has LL_BAD_ALSA=x and LL_BAD_OSS=x in the script, they're just commented out (the line begins with a #)

Uncomment those lines (delete the #) and you'll be set to just run the secondlife script normally!

Also, you can put any flags or arguments you want in there. My wife and I use the -port # flag which really has helped SL load faster (and with much less packet loss) when we're both on the grid.
_____________________
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
10-20-2006 08:53
Just edit ./secondlife. It's a normal shell script.
Yuu Nakamichi
Registered User
Join date: 16 Oct 2006
Posts: 11
10-20-2006 10:43
Ok that's great. And thanks!