diff --git a/dbus.go b/dbus.go index cae3475..41cab69 100644 --- a/dbus.go +++ b/dbus.go @@ -78,6 +78,9 @@ func (a *DBusAdapter) WatchExisting() { continue } a.startWatcher(id, sess) + // Emit SessionCreated so GUI clients that connected before restore + // (via serviceRegistered) learn about pre-existing sessions. + a.conn.Emit(busPath, busIface+".SessionCreated", id) } }