DISPLAY is not set after rollback from xquartz to apples x11 app
DISPLAY is not set after rollback from xquartz to apples x11 app
- Subject: DISPLAY is not set after rollback from xquartz to apples x11 app
- From: Peter Pertersen <email@hidden>
- Date: Sun, 8 Aug 2010 22:45:35 +0200
trying to rollback from xquartz v2.5.2 to apples x11 app it seems that
I crashed my launch deamon configuration.
problem is that launch deamon does not auto-start x11 anymore when
opening a x11 app like gimp.
rolling back i followed the instructions on
http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ
I noticed the following during my research:
In my launchctl org.x.startx was missing. i added it again by "sudo
launchctl load -w /System/Library/LaunchAgents/org.x.startx.plist"
command.
if I am right this should do the auto-start of x11 app when a
x-application requests it and should set the DISPLAY variable. after
rebooting my system its missing again. but as there is no launchd.conf
on my system (used find on) I guess there hasn´t ever been a
lauchd.conf on my system.
to my opinion the problem is the missing DISPLAY variable. no matter
which x-application i try to start from terminal i get "Error: Can't
open display:"
even when i start x11 from terminal a similar message is given. this
is the log i get (see line 5):
$ /Applications/Utilities/X11.app/Contents/MacOS/X11
X11.app: main(): argc=1
argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
Waiting for startup parameters via Mach IPC.
X11.app: Could not connect to server (DISPLAY is not set). Starting X server.
X11.app: Launching /usr/X11/bin/startx:
argv[0] = /bin/sh
argv[1] = -c
argv[2] = /usr/X11/bin/startx
font_cache: Scanning user font directories to generate X11 font caches
font_cache: Updating FC cache
xauth: creating new authority file /Users/<MYUSER>/.serverauth.2580
launch_msg("CheckIn") IPC failure: Operation not permitted
X11.app: No launchd socket handed off, unsetting DISPLAY
X11.app: do_start_x11_server(): argc=6
argv[0] = /usr/X11/bin/X
argv[1] = :0
argv[2] = -nolisten
argv[3] = tcp
argv[4] = -auth
argv[5] = /Users/<MYUSER>/.serverauth.2580
Xquartz starting:
X.Org X Server 1.4.2-apple53
Build Date: 20100211
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
(EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
font_cache: Done
What I am also wondering about this log is line 6 from end saying
"Xquartz starting:", although i followed the xquartz uninstall steps
and deleted the package references as mentioned.
What I also tried is reinstalling X11 from my snow leopard dvd and
reinstall complete snow leopard including x11. I also contacted apple
care (they said reinstall os x) I am running os x 10.6.4.
using the mailing list & google search I haven´t found an appropriate
thread leading me to a solution.
does someone know how i can get my os x auto-set the DISPLAY variable
again or point me to an existing thread i haven´t found?
regards,
peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden