Re: XQuartz 2.7.0
Re: XQuartz 2.7.0
- Subject: Re: XQuartz 2.7.0
- From: Jeremy Huddleston <email@hidden>
- Date: Mon, 07 Nov 2011 08:52:39 -0800
On Nov 6, 2011, at 6:40 PM, Ken Preslan wrote:
> On Sun, Nov 06, 2011 at 03:37:55PM -0800, Jeremy Huddleston wrote:
>>
>> On Nov 4, 2011, at 8:32 PM, Ken Preslan wrote:
>>
>>> On Fri, Nov 04, 2011 at 12:23:32PM -0700, Jeremy Huddleston wrote:
>>>> Today, I'd like to announce the release of XQuartz 2.7.0.
>>>
>>> I upgraded 2.7.0. It seems to work fine on my primary user. Then I "fast
>>> user switch" to another user and try to start XQuartz. It continually
>>> restarts and pops up the follow error report.
>>>
>>> Any ideas?
>>
>> It shouldn't do that because startx should be picking :1 rather than :0 as DISPLAY because of this code:
>>
>> # Automatically determine an unused $DISPLAY
>> d=0
>> while true ; do
>> [ -e /tmp/.X$d-lock ] || break
>> d=$(($d + 1))
>> done
>> defaultdisplay=":$d"
>> unset d
>>
>> So what's the deal with your /tmp/.X0-lock?
>
> I added "echo $defaultdisplay > /tmp/debug" right after that block in
> /opt/X11/bin/startx. The file ends up containing the right thing (:0 for the
> first user, :1 after starting the second user). So, it's not that code
> block.
>
> If quit everything and (as only one user) I run the X11 that came with Lion, the X processes
> running are:
>
> 20048 ?? S 0:01.78 /Applications/Utilities/X11.app/Contents/MacOS/X11.bin -psn_0_2249253
> 20056 ?? S 0:00.01 /bin/sh /usr/X11/bin/startx
> 20084 ?? S 0:00.00 /usr/X11/bin/xinit /usr/X11/lib/X11/xinit/xinitrc -- /usr/X11/bin/X :0 -nolisten tcp
> 20085 ?? S 0:00.01 /usr/X11/bin/X :0 -nolisten tcp
>
> If I do the same with XQuartz, the X processes are:
>
> 20513 ?? U 0:00.53 /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin -psn_0_2351678
> 20521 ?? S 0:00.00 /opt/X11/lib/X11/xinit/launchd_startx /opt/X11/bin/startx -- /opt/X11/bin/Xquartz
> 20522 ?? S 0:00.01 /bin/sh /opt/X11/bin/startx -- /opt/X11/bin/Xquartz
> 20529 ?? Ss 0:00.00 /opt/X11/lib/X11/xinit/privileged_startx -d /opt/X11/lib/X11/xinit/privileged_startx.d
> 20558 ?? S 0:00.00 /opt/X11/bin/xinit /opt/X11/lib/X11/xinit/xinitrc -- /opt/X11/bin/Xquartz
> 20560 ?? S 0:00.01 /opt/X11/bin/Xquartz :0
>
> The "-nolisten tcp" is gone from the xinit line too. The "allow network
> connections from clients" is unchecked on both X11 and XQuartz.
>
> I'll keep digging, but it seems like it's some other problem with startx.
Hmm... I wonder if startx is ignoring that now that the the launchd.plist has been updated to tell it which server to run...
If you remove the <string>/opt/X11/bin/Xquartz</string> from /Library/LaunchAgents/org.macosforge.xquartz.startx.plist, does it work for you? _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden