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

Shane King kde at dontletsstart.com
Thu Feb 14 01:31:43 CET 2008


Ralf Habacker wrote:
> Should this not be in KUniqueApplication destructor ?  But what about 
> application crashes or other abnormal terminations, are they routed also 
> over this destructor ?
> 
> Ralf

That was why I said it's a work around, not a real fix. I'm not sure 
what the real fix should be. Putting it in KUniqueApplication lets it 
work for all apps, but doesn't do anything to fix the crash case.

Off the top of my head, I see a couple of possibilities:

* When registering, from that point on monitor for that process exiting 
(crash or otherwise). Not sure how easy/practical this is to do.
* When registering, check first that the previous instance hasn't 
exited. If it has, unregister it and allow the new registration to succeed.

Shane.



More information about the Kde-windows mailing list