+++ This bug was initially created as a clone of Bug #24114 +++ tp_get_bus() calls exit(), which is Bad™. We can't remove it til we break ABI, but we can at least deprecate it. pytpfarsight still uses this function; it should use tp_dbus_daemon_dup() instead.
Here's an untested patch. It compiles, at least :-)
Looks good, merged, pushed
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.