Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
relax calling DBus API without running daemon #1705
Steps to Reproduce the Problem
Setup a environment without DBus session :/
Continue to work, despite of DBus daemon not running :-)
assert == exit()
Further Log Files and Output
OBS with vanilla elektra-0.8.20:
added a commit
Nov 21, 2017
To me the dbus_connection_unref (connection) call looks like a clean up from connection = dbus_bus_get (...) . The only case, which is not useful for a dbus_connection_unref(connection) appears to be: if (connection == NULL) ...
So that was maybe a small programming error?
bug fix release?:
Yes, it certainly was. Thank you for fixing it!
@waht Can you take a look? (Use dbus plugin without dbus session)
One workaround obviously is to unmount the dbus plugin if no dbus daemon is available but I fully agree that there never should be crashes. And we also should avoid the warnings.
I could not reproduce crashes due to the dbus plugin. I tried
Currently there are no more warnings when using the dbus plugin without a dbus daemon.