[Xquartz-dev] Getting bad DISPLAY value during use of 2.6.1-2.6.2 (not with 2.6.0 & before).
Jeremy Huddleston
jeremyhu at apple.com
Sun Apr 24 16:27:56 PDT 2011
On Apr 24, 2011, at 10:22, sci-fi at hush.ai wrote:
>>
>> You should have
>> /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
>>
>> What is the output of "launchctl list org.macosforge.xquartz.startx"
>
> $ launchctl list org.macosforge.xquartz.startx
> {
> "Label" = "org.macosforge.xquartz.startx";
> "LimitLoadToSessionType" = "Background";
> "OnDemand" = true;
> "LastExitStatus" = 0;
> "TimeOut" = 30;
> "ProgramArguments" = (
> "/opt/X11/bin/startx";
> );
> "EnableTransactions" = true;
> "TransactionCount" = -1;
> "Sockets" = {
> "org.macosforge.xquartz:0" = (
> file-descriptor-object;
> );
> };
> };
>
>
>>> <snip/>
>>>
>>> (There is no critter named /tmp/.X11-unix (shown via ls -al) presently
>>> on my system.
>>> The /tmp dir itself does have root:wheel ownership with "drwxrwxrwt"
>>> flags.)
>>
>> It should be created by /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
>>
>> What is the output of "sudo launchctl list org.macosforge.xquartz.privileged_startx"
>
> $ sudo launchctl list org.macosforge.xquartz.privileged_startx
> Password:
> {
> "Label" = "org.macosforge.xquartz.privileged_startx";
> "LimitLoadToSessionType" = "System";
> "OnDemand" = true;
> "LastExitStatus" = 0;
> "TimeOut" = 120;
> "ProgramArguments" = (
> "/opt/X11/lib/X11/xinit/privileged_startx";
> "-d";
> "/opt/X11/lib/X11/xinit/privileged_startx.d";
> );
> "EnableTransactions" = true;
> "TransactionCount" = -1;
> "MachServices" = {
> "org.macosforge.xquartz.privileged_startx" = mach-port-object;
> };
> };
>
>
>> […]
>
> During these lists, none of the X (sub)tasks are running now.
>
> BTW I dug a bit and found:
> $ ls -al /tmp/launch-34Cqdu
> total 0
> drwx------ 2 scifi wheel 102 Apr 24 10:25 .
> drwxrwxrwt 11 root wheel 544 Apr 24 11:56 ..
> srwx------ 1 scifi wheel 0 Apr 24 10:25 org.macosforge.xquartz:0
>
> so _something_ was trying to work right.
And I bet if you do 'export DISPLAY="/tmp/launch-34Cqdu/org.macosforge.xquartz:0"', it'll work as well...
Did you create a separate LaunchAgent for org.x.startx (like in /Library/LaunchAgents or ~/Library/LaunchAgents)? launchd should prefer /Library over /System/Library when determining the environment.
What is the output of:
ls -l {~,/System,}/Library/Launch*/org.*startx*
> But the timestamps might tell something -- the "wrong" one might've been created during when we rebooted, 19-minutes earlier:
No. /tmp is cleared at boot.
> $ ls -al /tmp/launch-s9kPWX
> total 0
> drwx------ 2 scifi wheel 102 Apr 24 10:06 .
> drwxrwxrwt 11 root wheel 544 Apr 24 11:56 ..
> srwx------ 1 scifi wheel 0 Apr 24 10:06 org.x:0
>
>
> Another BTW -- I don't have anything like ~/.x* critters either, nor in /etc . ;)
More information about the Xquartz-dev
mailing list