KMaiL: Can't setup D-Bus service. Probably already running.

Ingo Klöcker kloecker at kde.org
Sun Feb 17 23:01:11 GMT 2008


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 
be nice if applications would unregister themselves before exiting, but 
unregistering has to happen outside the application in any case because 
applications will exit without unregistering for various reasons, e.g. 
if they crash, or if they are killed, or because in some code path the 
unregistering was forgotten.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080218/e843e12f/attachment.sig>


More information about the kde-core-devel mailing list