Skip to content

KSignalHandler: possibility to register signal handler as early as possible

QSocketNotifier need instance of QCoreApplication, this mean that KSignalHandler mechanism will work only after QCoreApplication creation (see kscreenlocker repo, commit: 448df7517021b9c2e68de161008ebc180363abed). There is time gap between main() start and QCoreApplication creation. In this gap signals will will be unhandled.

Moving QSocketNotifier creation from constructor to oneShort timer mean that object will be created after main event loop start, and this will happen after QCoreApplication cteation.

Merge request reports