From kde-windows Thu Feb 14 00:31:43 2008 From: Shane King Date: Thu, 14 Feb 2008 00:31:43 +0000 To: kde-windows Subject: Re: KMaiL: Can't setup D-Bus service. Probably already running. Message-Id: <47B38BEF.8080605 () dontletsstart ! com> X-MARC-Message: https://marc.info/?l=kde-windows&m=120294916604361 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. _______________________________________________ Kde-windows mailing list Kde-windows@kde.org https://mail.kde.org/mailman/listinfo/kde-windows