[MacPorts] #43000: Macports install fails to launch X11

MacPorts noreply at macports.org
Tue Mar 25 20:41:43 PDT 2014


#43000: Macports install fails to launch X11
-----------------------------------+--------------------------------
  Reporter:  agtebo@…              |      Owner:  macports-tickets@…
      Type:  defect                |     Status:  closed
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.2.1
Resolution:  worksforme            |   Keywords:
      Port:  xorg-server, demeter  |
-----------------------------------+--------------------------------

Comment (by jeremyhu@…):

 Replying to [comment:11 agtebo@…]:
 > Here is what that looks like:
 > {{{#!python
 > agtebo$ echo $DISPLAY
 > /tmp/launch-KcoXVw/org.macosforge.xquartz:0
 > agtebo$ launchctl list | grep startx
 > -     1       org.x.startx
 > -     0       org.macports.startx
 > }}}
 >
 > I'm confused as to how my DISPLAY is showing macosforge if it's not
 listed as one of the startx list.

 You likely *HAD* it loaded when your session started and had since
 unloaded it.

 >
 > {{{#!python
 > agtebo$ launchctl unload -w
 /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
 > launchctl: Error unloading: org.macosforge.xquartz.startx
 > }}}

 Depending on what version of OS X you have, you may need to use 'sudo' to
 have that disabled in the plist rather than a per-user override.

 Furthermore, this indicates that you did not uninstall XQuartz per the
 instructions in the FAQ.  You need to remove that LaunchAgent's
 launchd.plist if you deleted XQuartz.  Check out the FAQ or just re-
 install XQuartz.

 > which I presume because it's no longer part of the starts list. Then,
 > {{{#!python
 > agtebo$ launchctl load -w
 /Library/LaunchAgents/org.macports.startx.plist
 > org.macports.startx: Already loaded
 > }}}
 > So I log back out and back in, and then:
 > {{{#!python
 > agtebo$ echo $DISPLAY
 > /tmp/launch-KcoXVw/org.macosforge.xquartz:0
 > }}}
 >
 > I am sure I'm being an idiot. What am I missing here?

 I'm guessing that org.macosforge.xquartz.startx is still loaded or you did
 not wait long enough for per user launchd to terminate (depending on your
 verison of OS X).

 Seeing as how you deleted XQuartz.app, you should remove the
 launchd.plist.

-- 
Ticket URL: <https://trac.macports.org/ticket/43000#comment:12>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list