• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: X PATH variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: X PATH variable


  • Subject: Re: X PATH variable
  • From: Martin Costabel <email@hidden>
  • Date: Wed, 15 Jan 2003 20:09:04 +0100

Julien Salort wrote:

Any idea on how to have a complete *global* PATH variable ?

There is the ~/.MacOSX/environment.plist that can be used, but it will give the same environment variables to *all* applications which can pose problems.


Here is another possibility, a "wrapper script". It is an evil hack, in the category of the symlink USA.keymapping->Francais.keymapping, but it is to be hoped that this kind of hack will not be necessary for the final version of X11.app:

1. Rename /Applications/X11.app/Contents/MacOSX/X11 to
  /Applications/X11.app/Contents/MacOSX/X11.bin

2. Write a shell script named
  /Applications/X11.app/Contents/MacOSX/X11
  containing, for example

#!/bin/tcsh
source /etc/csh.login
source /etc/csh.cshrc
exec /Applications/X11.app/Contents/MacOS/X11.bin

You can add something about the keymapping there, run "source /sw/bin/init.csh" or other commands defining the environment.
Don't forget to make it executable.


3. If you don't understand any detail of the points 1. or 2., then don't even try to do this. You are on your own here, anyway.

If you do this correctly, clicking on the X11 icon will work as before, but X11 will come up with a complete set of environment variables.

--
Martin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: X PATH variable
      • From: Martin Costabel <email@hidden>
    • Re: X PATH variable
      • From: Doug McNutt <email@hidden>
References: 
 >X PATH variable (From: email@hidden (Julien Salort))

  • Prev by Date: Re: xterm scroll bars
  • Next by Date: Re: global X11 config?
  • Previous by thread: X PATH variable
  • Next by thread: Re: X PATH variable
  • Index(es):
    • Date
    • Thread