[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-windows
Subject:    Re: KMaiL: Can't setup D-Bus service. Probably already running.
From:       Shane King <kde () dontletsstart ! com>
Date:       2008-02-14 0:31:43
Message-ID: 47B38BEF.8080605 () dontletsstart ! com
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic