KCM Authorization (was: Re: Review Request: print-manager on kdereview)
Thomas Lübking
thomas.luebking at gmail.com
Tue Aug 28 00:31:57 BST 2012
Am 27.08.2012, 22:53 Uhr, schrieb Daniel Nicoletti <dantti12 at gmail.com>:
> So to avoid the application quiting modules that need to perform
> async tasks like talking to polkit or installing packages (Apper),
> they need to create an event loop so that current module accept()
> doesn't return (if it does quit() will be called).
>
> So the user clicks Apply, while setting the time or doing anything
> the user clicks to close the window, the event loop will return
> and some stuff will be already deleted which causes the crashes...
As far as i understood the bottomline is the task to make an external
process fully modal to the window, yesno?
Aside that the NETWM spec probably SHOULD say that modal windows must not
receive input focus and mouse events and also not be closed, weird ideas:
a) add an eventfilter on the application to suck all input events (for
that window) so clicking apply etc. isn't possible and the window also
will not receive close events
b) intercept sigterm and reject it as long as you're waiting for the async
return
Cheers,
Thomas
More information about the kde-core-devel
mailing list