[MacPorts] #20505: dbus doesn't work
MacPorts
noreply at macports.org
Sun Aug 2 04:20:18 PDT 2009
#20505: dbus doesn't work
---------------------------------+------------------------------------------
Reporter: vinc17@… | Owner: mcalhoun@…
Type: defect | Status: new
Priority: High | Milestone:
Component: ports | Version: 1.7.1
Keywords: | Port: dbus
---------------------------------+------------------------------------------
Comment(by jonas@…):
As you're `ps auxww` shows, the session bus runs for the user root. That
means, your user doesn't have a session bus running and so the error
message "Dynamic session lookup supported but failed: launchd did not
provide a socket path, verify that org.freedesktop.dbus-session.plist is
loaded!" is correct.
The parameter `-w` to `launchctl load` removes the disabled-key from the
plist. After that it's loaded automatically on startup (launch deamons
once per system, launch agens once per user). To prevent a reboot you can
simply load the plist as you normal user (''not'' using sudo).
My original patch (#17950) for the dbus port which introduced launchd
support contained an notice saying exactly that. I've no idea why the
current maintainer removed this message in r49300 (line 98 in the old
file). Now it tells you explicitly to use sudo, which is wrong as it
results exactly in the error you've run into...
Well, maybe not completely wrong, things are a bit more complicated. You
need sudo in conjunction with the `-w` parameter, else the disabled-key
can't be removed from the plist-file. But to load launch''agents''
afterwards sudo loads it for the wrong user (for root instead of yours)
HTH,
Jonas
--
Ticket URL: <http://trac.macports.org/ticket/20505#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list