I suggest using the https://developer.gnome.org/gio/2.32/gio-Watching-Bus-Names.html API for this, which is convenient and efficient.
I suggest using the https:/ /developer. gnome.org/ gio/2.32/ gio-Watching- Bus-Names. html API for this, which is convenient and efficient.