On Thu, Jan 20, 2011 at 2:49 PM, Rainer Müller <[email protected]> wrote:
> On 01/20/2011 10:58 AM, iulian dragos wrote:
>> --->  Activating dbus @1.2.24_1
>> ############################################################################
>> # Startup items have been generated that will aid in
>> # starting dbus with launchd. They are disabled
>> # by default. Execute the following command to start them,
>> # and to cause them to launch at startup:
>> #
>> # sudo launchctl load -w
>> /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
>> # launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
>> ############################################################################
>>
>> The only weird thing was that I needed to do 'sudo' for the second
>> command as well (didn't have permissions otherwise).
>
> You only need write permissions once to remove the <Disabled> key from
> the plist file. As an alternative you could use launchctl load -F which
> forces the load.

Thank you for your reply. The file still has the Disabled key:

cat /Library/LaunchAgents/org.freedesktop.dbus-session.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>org.freedesktop.dbus-session</string>

        <key>ServiceIPC</key>
        <true/>

        <!-- bug in 10.4's launchd - on-demand loading does not work -->
        <key>OnDemand</key>
        <false />

        <key>Disabled</key>
        <true/>

        <key>ProgramArguments</key>
        <array>
                <string>/opt/local/bin/dbus-daemon</string>
                <string>--nofork</string>
                <string>--session</string>
        </array>

        <key>Sockets</key>
        <dict>
                <key>unix_domain_listener</key>
                <dict>
                        <key>SecureSocketWithKey</key>
                        <string>DBUS_LAUNCHD_SESSION_BUS_SOCKET</string>
                </dict>
        </dict>
</dict>
</plist>

-F doesn't help here, but the daemon is still running:

$ launchctl load -F -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
org.freedesktop.dbus-session: Already loaded
launchctl: 
CFURLWriteDataAndPropertiesToResource(/var/db/launchd.db/com.apple.launchd.peruser.501/overrides.plist)
failed: -10

Do you think this could be the source of my troubles?

thanks again,
iulian


>
> Rainer
> _______________________________________________
> macports-users mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>



-- 
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to