From kde-core-devel Sun Feb 17 23:01:11 2008 From: Ingo =?iso-8859-15?q?Kl=F6cker?= Date: Sun, 17 Feb 2008 23:01:11 +0000 To: kde-core-devel Subject: Re: KMaiL: Can't setup D-Bus service. Probably already running. Message-Id: <200802180001.11634 () erwin ! ingo-kloecker ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=120328931800944 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart3502718.x0I4yTyBlz" --nextPart3502718.x0I4yTyBlz Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 17 February 2008, Ralf Habacker wrote: > Thiago Macieira schrieb: > > Ralf Habacker wrote: > >> I recognized a similar error with amarok starting the second time. > >> I had to restart dbus-daemon to avoid this message. In that case i > >> assume that the service KUniqueApplication registers in dbus > >> wasn't unregistered at application shutdown. At least there is no > >> unregisterService() call in whole kdelibs. May be that thiago can > >> give some lights in this area. Anyway the related code is located > >> in > >> kdelibs/kdeui/kernel/kuniqueapplication.cpp line 146 > > > > The name unregisters automatically when the application exits. > > Is this good progamming style not to unregister resources, which are > registered before and to expect that this unregistering is outside > the app ? It's irrelevant whether this is good programming style or not. It would=20 be nice if applications would unregister themselves before exiting, but=20 unregistering has to happen outside the application in any case because=20 applications will exit without unregistering for various reasons, e.g.=20 if they crash, or if they are killed, or because in some code path the=20 unregistering was forgotten. Regards, Ingo --nextPart3502718.x0I4yTyBlz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQBHuLy3GnR+RTDgudgRAptsAJ4u7c854gu9Fw2aY9ufb3waTseFpACfcOYx A3LyyYuw+6jr7xEV4/ugErE= =eFZf -----END PGP SIGNATURE----- --nextPart3502718.x0I4yTyBlz--