[Mac OS X TeX] Re: TeXShop environment variables?

Daniel A. Steffen steffen at ics.mq.edu.au
Sat Sep 1 07:56:59 CEST 2001

<x-flowed>At 14:44 -0400 on 27/8/01, Arun Mangalam wrote:

>I did a little test with my own test-app and TeXShop, and, if launched
>from the Finder, I found both not inheriting any paths defined in my
>.*cshrc file. They inherit paths from Finder (which hardly has anything:
>/bin, /usr/bin, ~).
>However, if launched from the Terminal, they inherit all my defined

see http://developer.apple.com/qa/qa2001/qa1067.html for the correct 
way to set environment variables for all processes under OSX.



  [Technical Q&A QA1067]
  [Setting environment variables for user processes]


  Q: How do I set environment for all processes launched by a specific user?

  A: It is actually fairly simple process to set environment variables for
  processes launched by a specific user.

  There is a special environment file which loginwindow searches for each
  time a user logs in. The environment file is: ~/.MacOSX/environment (be
  careful its case sensitive). Where '~' is the home directory of the user
  we are interested in. You will have to create the .MacOSX directory
  yourself using terminal (by typing mkdir .MacOSX). You will also have to
  create the environment file yourself. The environment file is actually in
  XML/plist format (though don't add the .plist extension to the end of the
  filename or this won't work). An example environment file is shown below.
  The file was created using /Developer/Applications/PropertyListEditor.app


  Here the environment variables TestEnvironmentVariable and MrX are set to
  /My/Value and 1 respectively, every time that specific user logs in. You
  can add more environment variables by adding new siblings to the property
  list using the 'New Siblings' button shown above.

  Note that the key class must be string. If any other class is used the key
  will not be recognized by loginwindow. You can confirm the environment
  variables have been set as expected by typing setenv into terminal.

  Additional Note: On early builds of OSX (specifically 10.0.1 and earlier)
  the file used was
  ~/.OpenStep/environment instead of ~/.MacOSX/environment. The answer to
  your next question is: Yes, this is a relic left over from

** Daniel A. Steffen          **  "And now to something completely
** Department of Mathematics  **   different"    Monty Python
** Macquarie University       ** <mailto:steffen at maths.mq.edu.au>
** NSW 2109 Australia         ** <http://www.maths.mq.edu.au/~steffen/>

To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
This list is not moderated, and I am not responsible for
messages posted by third parties.

More information about the macostex-archives mailing list