From eaa32cd94d581534487d0263325f439d544e4abb Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sun, 19 Jul 2026 14:16:10 +0200 Subject: [PATCH] dbus: emit SessionCreated for restored sessions in WatchExisting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During startup, session.NewManager restores sessions and fires the OnSessionCreated callback, but dbusAdapter is still nil at that point so SessionCreated signals were never emitted. WatchExisting runs after the adapter is live — emit SessionCreated there so GUI clients learn about pre-existing sessions reliably. --- dbus.go | 3 +++ 1 file changed, 3 insertions(+) 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) } }