Re: migrating Tiger -> Snow Leopard -- X11 startup problem
Re: migrating Tiger -> Snow Leopard -- X11 startup problem
- Subject: Re: migrating Tiger -> Snow Leopard -- X11 startup problem
- From: "Mark E. Perkins" <email@hidden>
- Date: Fri, 19 Nov 2010 13:39:16 -0700
On 2010/11/19 13:26, Mark E. Perkins wrote:
> On 2010/11/19 13:13, Jeremy Huddleston wrote:
>> On Nov 19, 2010, at 12:06, Mark E. Perkins wrote:
>>
>>> Actually, I'm moving from an old iMac running Tiger to a new Mini w/ 10.6.4
>>> (as distributed, with all updates). For the moment we can consider this a
>>> "desert start" on 10.6.4; I have not used Migration Assistant; only copied
>>> over some startup files (.bash_profile, .bashrc, .Xdefaults). As I
>>> understand things, using ~/.xinitrc is deprecated, so I'm not doing that.
>>> I have one file in ~/.xinitrc.d, with the following contents:
>>>
>>> xterm -geometry 80x50+0+0 &
>>> xterm -geometry 80x50+200+200 &
>>> exec twm
>>>
>>> Hopefully, it's obvious that I want to start up twm with two xterms
>>> (actually, this is stripped down from what I *really* want, but it
>>> illustrates the problem).
>>>
>>> I launch /Applications/Utilities/X11.app and I get twm with the two xterms
>>> plus the "free" xterm courtesy of X11.app.
>> You can remove that if you want:
>> http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ#Suppressingxtermlaunchingbydefault
>>
>
> Thanks for that pointer/reminder.... it's in my notes, somehwere.
>
>>> Now the problems:
>>>
>>> The two xterms that *I* run start in the root directory ('/'), and their
>>> DISPLAY variables are wrong. In those shells, I see
>>>
>>> -> echo $DISPLAY
>>> :0.0
>> That's not wrong. It's just different. That is the value of $DISPLAY
>> passed to xinitrc by xinit. It connects to the same server, just not using
>> the launchd socket. It also will use xauth.
>>
>>> In the "free" xterm, I get what I think I should get
>>>
>>> -> echo $DISPLAY
>>> /tmp/launch-IEEyrc/org.x:0
>> Yep.
>>
>>> and this is also what I get in subsequent xterms that I launch later.
>> Yep.
>>
>>> I am not setting DISPLAY in any of my startup files; I've checked, and if I
>>> move them aside, the above issues remain. Same holds if I use quartz-wm
>>> instead of twm.
>> Yep.
>>
>>> I've scanned back through the archives, checked the Xquartz FAQ, but I
>>> don't see anything relevant to this problem.... Obviously, I'm missing
>>> something.
>>>
>>> "About X11" reports Xquartz 2.3.5 and xorg server 1.4.2-apple53
>>>
>>> Any ideas?
>> What problems are you seeing? If it's just that you're getting a
>> traditional $DISPLAY for things started in xinitrc, that is actually
>> expected. Everything should still work properly.
>
> Thanks. Agreed that everything w.r.t. DISPLAY seems to be working OK, and
> your comments ring some faint bells on that....
>
> The remaining problem/question is why the shell in those xterms starts in /
> as opposed to $HOME. If I use 'xterm -ls' I see the same behavior, so it
> doesn't appear to be related to startup file processing (and same behavior
> with my startup files moved aside).
>
> Cheers,
> Mark
I should have been clear that in the "free" xterm and any subsequent
xterms, the shell starts in $HOME, and that the rest of the environment
looks OK even in those (e.g., $USER is me, $PATH is right, other things I
set in startup files are OK, ...).
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden