Re: Why org.freedesktop.DBus.Local.Disconnected is called?
Sheng Mao <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
Thank you for explaining this, Thiago! Then it means the unregistration code kwin_x11 will not be executed. Although I still don’t know who/why terminates the session but it is something I can use. * in kwin_x11, I need to add a watcher for session disconnected, and close kwin_x11 event loop on that * in startkde, I need to add a timer to query registration status. My test app shows that the service becomes unregistered after a few seconds. QDBusServiceWatcher cannot send a unregistration event/signal if org.kde.KWin is terminated passively. Thank you! I will do more tests on that. > On Nov 8, 2020, at 09:03, Thiago Macieira <[email protected]> wrote: > > On Saturday, 7 November 2020 19:26:26 PST Sheng Mao wrote: >> Sorry I missed some important information here. Please forgive me that I am >> not very familiar with field. >>> However, I use busctl —user monitor org.kde.KWin, it seems >>> org.freedesktop.DBus.Local.Disconnected signal is issued, so the service >>> is not unregistered. >> >> The reason is I modified startkde to watch for unregistration of service >> org.kde.KWin, and after the unregistration, startkde should exit. However, >> I use busctl to monitor org.kde.KWin (busctl keeps running and waits for >> log messages), org.freedesktop.DBus.Local.Disconnected signal shows up in >> the log as the last message and busctl stops working. Then I use busctl to >> check if org.kde.KWin still exits and the service actually disappears. But >> when I use QDBusConnectionInterface::isServiceRegistered to check if >> org.kde.KWin is still registered and the result is the service still is >> registered. > > This signal means the bus daemon disconnected your client and this happens > because the bus daemon isi exiting, closing the connection to all clients. > > I think this is sufficient information for you You don't need further > deregistration information: the session is over. > > -- > Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org > Software Architect - Intel DPG Cloud Engineering > > > > _______________________________________________ > dbus mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/dbus _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus