fix bar crashing on monitor add/remove

This commit is contained in:
2026-02-09 13:49:52 +01:00
parent a90d1c2f6c
commit e1217305a5
30 changed files with 1186 additions and 247 deletions

View File

@@ -14,6 +14,10 @@ class DbusConnection {
Gio::DBus::Connection::get(Gio::DBus::BusType::SESSION, callback);
}
void connect_system_async(const sigc::slot<void(const Glib::RefPtr<Gio::AsyncResult> &)> &callback) {
Gio::DBus::Connection::get(Gio::DBus::BusType::SYSTEM, callback);
}
static void ensure_gio_init() {
try {
Gio::init();