Meld X11 Error

Jeremy Huddleston jeremyhu at macports.org
Thu Aug 26 09:16:21 PDT 2010


On Aug 26, 2010, at 09:01, Rainer Müller wrote:

> On 2010-08-26 17:37 , Jeremy Huddleston wrote:
>> Snow Leopard:
>> launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist 
>> 
>> Leopard:
>> sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist 
> 
> Does this really require sudo on Leopard?

SL has a per-user launchd in which the Disabled boolean is set outside of the plist.  The SL version is what behaves "correctly".  On Leopard, you need to use sudo with -w in order to have write permission to the plist.

From launchctl(1) on SL:
              -w       Overrides the Disabled key and sets it to false.
                       In previous versions, this option would modify the
                       configuration file. Now the state of the Disabled
                       key is stored elsewhere on-disk.

> If so, instructions given by 'port notes dbus' are wrong for Leopard and
> should be made conditional per OS version.

On Leopard, you don't need sudo if you don't have -w.  The instructions in the kde4 portgroups don't use '-w' and thus should work for both versions.  They should probably be updated then to inform the user to remove the Disabled key by other means (editing the file?)




More information about the macports-users mailing list