Thread View: comp.sys.next.misc
1 messages
1 total messages
Started by Graham Stoney
Wed, 08 Apr 1992 04:19
How to give a program launched by Workspace an environment?.
Author: Graham Stoney
Date: Wed, 08 Apr 1992 04:19
Date: Wed, 08 Apr 1992 04:19
33 lines
1656 bytes
1656 bytes
Can anyone give me an idea of a clean way to set environment variables in
programs launched from the workspace?. I'd like to do things like add
/usr/local/man to the MANPATH used by utilities->manual in Edit, and set
variables for use by Emacs.
I say "a clean way" because one of the local gurus has come up with this
neat, elegant, minimal, concise, ...... well, it is a solution I guess:
i. Create a file, say .workspacerc, that contains the
following....
#!/bin/sh
var=value export var
... (do other environment variables)
exec /usr/lib/NextStep/Workspace.app/Workspace $@
ii. Make sure the above file is executable...
chmod +x $HOME/.workspacerc
iii. Tell the Next login program what to run as Workspace...
dwrite loginwindow Workspace $HOME/.workspacerc
Any clues?
thanks,
Graham.
--
10 REM My Greatest Ever Programming Achievement, by Graham Stoney.
15 REM "The single most important environmental thing an Australian can do is
20 REM to not own a cat" (Serious comment included in .sig on a trial basis.)
30 FORK = 1 TO 100: PRINT "Well, I AM a Hardware Engineer!": NEXT SPOON
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads