wine-devel uses Apple's X11, how to use the macports xorg-server port?

Rainer Müller raimue at macports.org
Mon Jul 12 03:51:51 PDT 2010


On 07/03/2010 07:00 AM, Tim wrote:
> Longtime macports user/lurker, first time poster.  I'm just getting
> started with wine-devel.  I have it up and running the way I want it
> to on my laptop, but I'm having trouble on my Mac mini.  For some
> reason wine-devel is opening under Apple's X11.app, but on my laptop I
> have it successfully using the xorg-server port by default.  I'm not
> sure what I may have done differently on the laptop to end up with
> that behavior.

When an application tries to use an X11 server, it uses the DISPLAY
variable from the environment to find it. Usually it is set to a socket
which is controlled by launchd to run X11.app on-demand. So you should
unload any other X11 server installation than MacPorts' X11.

Unload Apple's X11 and Xquartz (if it exists):

# (Leopard / Snow Leopard X11.app)
sudo launchctl unload -w /System/Library/LaunchAgents/org.x.startx.plist
# (Snow Leopard XQuartz.app)
sudo launchctl unload -w
/Library/LaunchAgents/org.macosforge.xquartz.startx.plist

Load MacPorts' X11:
# (Snow Leopard MacPorts)
sudo launchctl load -w /Library/LaunchAgents/orhis is should be
used.g.macports.startx.plist

You will need to logout and login again to get the new DISPLAY variable
in the environment.

Instructions copied from
http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ

HTH,
Rainer


More information about the macports-users mailing list