Start X11 automatically when launching programs from Terminal
Lawrence Velázquez
larryv at macports.org
Thu May 16 19:05:54 PDT 2013
On May 16, 2013, at 9:46 PM, Leo Singer <aronnax at macports.org> wrote:
> On Mountain Lion, how do you configure X11 (provided by MacPorts' xorg port) to start automatically as needed? When I am Terminal.app, if I run 'xclock', I just get:
>
> Error: Can't open display:
>
> It works fine if I open /Applications/MacPorts/X11.app, then open an xterm window, and then run 'xclock' from there.
Did you load the xorg-server LaunchAgent, then log out and back in?
% launchctl load -w /Library/LaunchAgents/org.macports.startx.plist
Yeah, the xinit install tells you to do this. Very briefly. If you're paying attention.
http://trac.macports.org/browser/trunk/dports/x11/xinit/Portfile#L82
vq
More information about the macports-users
mailing list