<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 26, 2011, at 3:34 AM, Jeremy Huddleston wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">You shouldn't need to move them.  The one in /Library should take precedence over the one in /System/Library.<br><br>Instead of messing with the files on your FS, you should just use launchctl to disable that LaunchAgent:<br>launchctl unload /System/Library/LaunchAgents/org.x.startx.plist<br><br>I'm curious why your $DISPLAY still has the setting from the other LaunchAgent ... anything helpful you can provide would be welcome, but it doesn't seem to be a problem here =/<br></span></blockquote></div><br><div>I restored my filesystem to its previous state. But here's what I see in Terminal immediately after rebooting my Lion system:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>ProcyonLeo: ~] ls /System/Library/LaunchAgents/org.*</div></div><div><div>/System/Library/LaunchAgents/org.openbsd.ssh-agent.plist /System/Library/LaunchAgents/org.x.startx.plist</div></div><div><div>ProcyonLeo: ~] ls /Library/LaunchAgents/org.*</div></div><div><div>/Library/LaunchAgents/org.macosforge.xquartz.startx.plist</div></div><div><div>ProcyonLeo: ~] ls ~/Library/LaunchAgents/org.*</div></div><div><div>ls: /Users/louis/Library/LaunchAgents/org.*: No such file or directory</div></div><div><div>ProcyonLeo: ~] launchctl list org.x.startx</div></div><div><div>{</div></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div>"Label" = "org.x.startx";</div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div>"LimitLoadToSessionType" = "Aqua";</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div>"OnDemand" = true;</div><div><div><span class="Apple-tab-span" style="white-space:pre">  </span></div>"LastExitStatus" = 0;</div><div><div><span class="Apple-tab-span" style="white-space:pre">       </span></div>"TimeOut" = 30;</div><div><div><span class="Apple-tab-span" style="white-space:pre">     </span></div>"ProgramArguments" = (</div><div><div><span class="Apple-tab-span" style="white-space:pre">              </span></div>"/usr/X11/bin/startx";</div><div><div><span class="Apple-tab-span" style="white-space:pre">      </span></div>);</div><div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div>"EnableTransactions" = true;</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div>"TransactionCount" = -1;</div><div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div>"Sockets" = {</div><div><div><span class="Apple-tab-span" style="white-space:pre">               </span></div>"org.x:0" = (</div><div><div><span class="Apple-tab-span" style="white-space:pre">                       </span></div>file-descriptor-object;</div><div><div><span class="Apple-tab-span" style="white-space:pre">               </span></div>);</div><div><div><span class="Apple-tab-span" style="white-space:pre">    </span></div>};</div><div><div>};</div></div><div><div>ProcyonLeo: ~] launchctl list org.macosforge.xquartz.startx</div></div><div><div>launchctl list returned unknown response</div></div><div><div>ProcyonLeo: ~] xeyes&</div></div><div><div>[1] 445</div></div></blockquote><div><div><br></div><div>(Needless to say, the Apple X11 opened here.)</div><div><br></div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>ProcyonLeo: ~] launchctl unload /System/Library/LaunchAgents/org.x.startx.plist</div></div><div><div>[1]+  Done                    xeyes</div></div><div><div>ProcyonLeo: ~] xeyes</div></div><div><div>Error: Can't open display: /tmp/launch-ObESmz/org.x:0</div></div><div><br></div></blockquote><div><br></div></body></html>