Re: PATH problem
Re: PATH problem
On Wed, Mar 19, 2003 at 11:46:50AM -0700, Doug McNutt wrote:
> At 16:07 +0100 3/19/03, Rimbalzina wrote:
> >Hi, I am a new user of X11. Which File do I have to modify to change the login
> >settings (PATH, ecc) in xterm?
>
> X11 seems to think it's an Aqua application. As such it does not honor any kind of UNIX login. Logging in to OS neXt does read the file $HOME/.MacOSX/environment.plist which you can create. Most apps will honor environment variables like LC_ALL and PATH if they are set up there. A search of archives for this list or the Apple site for "environment.plist" will show up some examples.
Yes, but xterm is a perfectly normal X11 application, and it runs a
shell. That shell reads normal UNIX shell initialisation files.
When you start Apple's X11, it runs a system-wide script to start a few
clients: /etc/X11/xinit/xinitrc
By default, this script checks whether you have a .xinitrc in your home
directory and executes that if you do, otherwise it starts a single
xterm (with a plain, not login, shell, so it only reads .cshrc, not
.login) and the quartz-wm window manager.
So, if you want to change the X11 startup items for all users on the
system, change /etc/X11/xinit/xinitrc, otherwise create a .xinitrc
script for yourself (copy the above system one to your home directory
and call it .xinitrc, and then modify it)
Tim
--
Dr Tim Cutts
Informatics Systems Group
Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1SA, UK
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.