Start X11 automatically when launching programs from Terminal

Leo Singer aronnax at macports.org
Thu May 16 20:00:08 PDT 2013


On May 16, 2013, at 7:55 PM, Lawrence Velázquez <larryv at macports.org> wrote:

> On May 16, 2013, at 10:11 PM, Leo Singer <aronnax at macports.org> wrote:
> 
>> Could you add a startupitem so that you can load/unload X11 with 'port (un)load) xinit'?
> 
> Jeremy's the authority, of course, but I'm not sure how this would work. There are two launchd items involved with xinit:
> 
>    - /Library/LaunchDaemons/org.macports.privileged_startx.plist
>    - /Library/LaunchAgents/org.macports.startx.plist
> 
> Which one would "port load" affect? Only one of these is a daemon, but it's probably not the one you're thinking of flipping the switch for.

I don't know how they differ. I do notice that there is the line:

    system "launchctl load /Library/LaunchDaemons/org.macports.privileged_startx.plist"

in the port's post-activate stage. What does that do? Could the port also do:

    system "launchctl load -w /Library/LaunchAgents/org.macports.startx.plist"

?

Leo


More information about the macports-users mailing list