[OS X TeX] X11
Peter_Dyballa at Web.DE
Sat May 28 18:12:22 CEST 2005
Am 28.05.2005 um 15:46 schrieb Ettore Aldrovandi:
> The question is, if a user has set a .xinitrc, then will the global
> one be
> executed? I haven't checked this.
When the user has an own .xinitrc the 'template' /etc/X11/xinit/xinitrc
will *not* be executed. Except it contains a statement like '.
/etc/X11/xinit/xinitrc' ... but that's far away from a good solution.
'. /etc/profile' might work better,
> Another system-wide kludge is the following. Force each xterm to
> run a login shell by setting the appropriate resource in
Or you rename xterm to xterm.bin and create a shell script xterm that
invokes xterm.bin with -ls. This brings some inconvenience: 'xterm -e
<something>' won't work -- it's the same as in Emacs why one can't
create a login shell to check the environment! (If someone would want
to launch an xterm to execute some script or such, it would have to be
then 'xterm.bin -e <the thing>.')
The X resource for xterm to start with a login shell is:
But again: the users' .xinitrc files need to load the file with that
setting! The directory /etc/X11/app-defaults is *not* automatically
searched for files containing X resources, the environment variable
XAPPLRESDIR needs to be set to this value before. If the environment
has the variable XENVIRONMENT set, pointing to a file, this file is
automatically used to set the X11 run-time environment too. (X11 is an
almost as old hack as TeX is. Or Emacs.)
The easiest way is to maintain ~/.MacOSX/environment.plist, I think.
The file's manipulation with Perl should be easy, so a little script
could help us maintain that file ...
"They're putting dimes in the hole in my head to see the change in me."
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives