LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to obtain the dependencies of a dbus service? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-obtain-the-dependencies-of-a-dbus-service-910310/)

ajaygarg 10-26-2011 01:17 PM

How to obtain the dependencies of a dbus service?
 
Hi all.

How can we find the dependencies of a dbus-service?

Apparently, I have started the particular dbus service, and wish to retrieve the properties from the service. The Name, Path and Interface are exactly the one used for the service.

However, when I do a dbus.SessionBus().get_object, I get the following exception ::

Code:

Traceback (most recent call last):
  File "hope.py", line 8, in <module>
    obj = bus_class.get_object(NAME, PATH)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 245, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 184, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 288, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 645, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name <bus-name> was not provided by any .service files

I run a Fedora 14 machine, and use python-bindings.

Regards,
Ajay


All times are GMT -5. The time now is 09:51 PM.