IRIX Network Forums
Editing .profile to make LightWave work - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: Beginners' Questions/Tips (//forums.irixnet.org/forum-6.html)
+--- Thread: Editing .profile to make LightWave work (/thread-3118.html)

Pages: 1 2


Editing .profile to make LightWave work - CGFX.us - 09-16-2021

What, exactly, is the syntax expected if I want to set $LIGHTWAVE to /usr/lightwave/Bin in my .profile file? 

Is there anything else which needs to be set? I forget. It's been ages since I did any of this stuff and I've spent my of my time since then painting.


RE: Editing .profile to make LightWave work - Raion - 09-16-2021

So, whether you use .profile or your shell rc depends on your shell that you're using.

I use tcsh, and the same rules apply to csh. Generally .profile is pretty redundant to .cshrc for both. Just a line in your .cshrc near the bottom:

setenv LIGHTWAVE /usr/lightwave/Bin

would do it, but be warned. UNIX is CASE SENSITIVE unlike say, macOS or Windows. So Bin does not equal bin does not equal BIN does not equal bIN.

For KSH, you need to use .shrc IIRC or .profile. You'd use the export command for that, and the bash export command is moreorless ganked wholesale from the original bourne shell.


RE: Editing .profile to make LightWave work - CGFX.us - 09-16-2021

Ok, added to .cshrc, but I must need to do something else, since it's not working. I still get the Startup Failure 213: Message file missing or wrong version report via the console.

For KSH, you need to use .shrc IIRC or .profile. You'd use the export command for that, and the bash export command is moreorless ganked wholesale from the original bourne shell.

Like this:

export LIGHTWAVE=/usr/lightwave/Bin ?

I'm basically guessing here, since I can't remember how this is supposed to go.


RE: Editing .profile to make LightWave work - Raion - 09-16-2021

I think? I don't use ksh enough.

It depends on your login shell though. cat the /etc/passwd file to see what your user uses as a shell.


RE: Editing .profile to make LightWave work - vishnu - 09-16-2021

Basically, use export for Bourne and it's clones and setenv for C shell and it's clones. export uses the = sign to set the variable, setenv doesn't.


RE: Editing .profile to make LightWave work - CGFX.us - 09-16-2021

Yep: export LIGHTWAVE=/usr/lightwave/Bin

That was it. Thanks, everyone!


RE: Editing .profile to make LightWave work - megaimg - 02-05-2022

I got the Lightwave working but, when I try to for example load a scene, always go back to the root directory....does not start at /usr/lightwave

Anything that I need to add to the .profile or .cshr


RE: Editing .profile to make LightWave work - Shiunbird - 02-05-2022

The fact that Lightwave always returns to /usr/lightwave and doesn't remember the last used directory is so annoying.
I have a ton of fun with it, but the nightmare of browsing the folders to find your object files (or keeping a text file nearby with the most important folders) is very painful.

I have my lightwave set up and defaulting to /usr/lightwave fine. If you still need help, let me know and I will check it out how I have it set.


RE: Editing .profile to make LightWave work - megaimg - 02-06-2022

(02-05-2022, 09:26 PM)Shiunbird Wrote:  The fact that Lightwave always returns to /usr/lightwave and doesn't remember the last used directory is so annoying.
I have a ton of fun with it, but the nightmare of browsing the folders to find your object files (or keeping a text file nearby with the most important folders) is very painful.

I have my lightwave set up and defaulting to /usr/lightwave fine. If you still need help, let me know and I will check it out how I have it set.
How do you make it go by default to /usr/lightwave


RE: Editing .profile to make LightWave work - Shiunbird - 02-06-2022

I'll check it out - I've never had to touch it, it has always worked fine. Give me a day.