Re: Why org.freedesktop.DBus.Local.Disconnected is called?

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <10051345.WMXhKeFWsi@tjmaciei-mobl1>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.