Gio.DBusConnection.prototype.set_exit_on_close
function set_exit_on_close(exit_on_close: Boolean): void { // Gjs wrapper for g_dbus_connection_set_exit_on_close() }
Sets whether the process should be terminated when connection is closed by the remote peer. See Gio.DBusConnection.exit_on_close for more details.
Note that this function should be used with care. Most modern UNIX desktops tie the notion of a user session the session bus, and expect all of a users applications to quit when their bus connection goes away. If you are setting exit_on_close to false for the shared session bus connection, you should make sure that your application exits when the user session ends.
Since 2.26
- exit_on_close
whether the process should be terminated when connection is closed by the remote peer