Home > Mac OS, System > Fancy Auto-Launching in Leopard

Fancy Auto-Launching in Leopard

October 30th, 2007

As mentioned in a previous post, Leopard uses launchd to automatically launch ssh-agent when needed. I just noticed that it does exactly the same thing for X11!

Try it: type xeyes in a Terminal window and watch X11.app magically launch itself. Very smooth. Relevant configuration is quite simple:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>        <key>Label</key><string>org.x.X11</string>        <key>Program</key><string>/usr/X11/X11.app/Contents/MacOS/X11</string>        <key>Sockets</key>                <dict>                <key>:0</key>                <dict><key>SecureSocketWithKey</key><string>DISPLAY</string></dict>        </dict>        <key>ServiceIPC</key><true/></dict></plist>

For more information on launchd, see the following man pages: launchd(8), launchctl(1) and launchd.plist(5).

A nice feature I was not aware of is the ability to put user-specific agent definitions in ~/Library/LaunchAgents, very cool.

blog
Pharmacy blog
buy soma
buy viagra
buy viagra online
cheap generic viagra
buy cialis online
buy cialis
buy levitra online
buy levitra
buy trial packs
buy propecia
buy propecia online
buy voltaren
buy cialis soft
buy cialis soft online
buy viagra soft online
buy viagra soft
buy acomplia
buy acomplia online

Categories: Mac OS, System Tags:
Comments are closed.