You don't need an actual dbus function call for this, do you? Just check if the name 'com.canonical.Unity' is owned.
You don't need an actual dbus function call for this, do you? Just check if the name 'com.canonical. Unity' is owned.