lock/unlock events for in C++ app which should not depend on screen savers

We have a product, which was developed for Windows. Because of customer request we are developing it for Linux also. So being a beginner to Linux, have migrated most of it (which I loved it).

Now got stuck where I want lock/unlock events to be captured from OS ("System Event Notification Service(SENS)" in Windows). Gone through a lot about Gnome screensaver which gives D-Bus interface to find out lock/unlock events. If instead xscreensaver is running, which doesn't provide any such interface(I Guess). Is there any concrete solution for this?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like