WIP:Watch for callaudiod vanishing
Still WIP since it's untested (and does not yet do anything to activate callaudiod over dbus). Should close #8 (closed)
From what I understood from DBus activation the service should automatically be started when a corresponding DBus method is called.
Now I'm a bit confused what's stated in https://developer.gnome.org/gio/stable/gio-Watching-Bus-Names.html#g-bus-watch-name
This behavior makes it very simple to write applications that want to take action when a certain name exists. Basically, the application should create object proxies in name_appeared_handler and destroy them again (if any) in name_vanished_handler .
If object proxies (not entirely sure what exactly is meant by that - is our _proxy
in such an object?) should only be created after the name has appeared on the bus, then how are we supposed to make a remote procedure call on the DBus?
Also interesting: When we start watching the bus name, we can make it autostart the service with https://developer.gnome.org/gio/stable/gio-Watching-Bus-Names.html#GBusNameWatcherFlags
So maybe we should unwatch the name after the name vanished and "rewatch" it with G_BUS_NAME_WATCHER_FLAGS_AUTO_START
set?