Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistencies with ~/.xinitrc being loaded



Rogue Agent wrote:
Do you have a ~/.MacOSX/environment.plist set up?

The existence of this file has nothing to do with the fact that your ~/.xinitrc is read at X11 startup.


[]
I tried changing my .xinitrc file to open multiple xterms. This is where it gets weird. Like you have experienced when launching form the GUI, it will open two xterms. HOWEVER it will not set my $PATH

Because of a typo, perhaps.

variable. Another thing is, that with OR without the .xinitrc file, if I launch from terminal, my $PATH is set. I mistakenly assumed the

Terminal.app starts a login shell, naked xterm doesn't.

difference was from the .xinitrc and it may not have been. I am including my .xinitrc file. Perhaps it is the command I am using to set the variable (which I found in an example .xinitrc)

It seems that somehow I might get this to work without setting up the .MacOSX/environment.plist file.

Thanks again for any help and insight!


#!/bin/sh # $Id: xinitrc,v 1.3 2004/06/11 04:37:23 jharper Exp $

[]

# run profile to set $PATH and other vars correctly . $HOME/ .bash_profile

Is there really a blank space afte the "/"? This would explain a lot...

# start some nice programs

xterm &
xterm &

Try

 xterm -ls &

instead. This starts a login shell and reads your environment that you are used to from Terminal.app. you may even want to decorate your xterm a little, like with

  xterm -geometry 80x42+0-0 -ls -sb -rightbar -sl 2000 &

See man xterm for explanations.

But then, why do you want to use xterm when you have Terminal.app?

--
Martin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Inconsistencies with ~/.xinitrc being loaded (From: Rogue Agent <email@hidden>)
 >Re: Inconsistencies with ~/.xinitrc being loaded (From: Don MacQueen <email@hidden>)
 >Re: Inconsistencies with ~/.xinitrc being loaded (From: Rogue Agent <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.