Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Is there any API to find out whether the desktop is locked? Thanks, Dhruva123...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    2

    Desktop lock


    Hi,

    Is there any API to find out whether the desktop is locked?

    Thanks,
    Dhruva123

  2. #2
    Just Joined!
    Join Date
    Dec 2007
    Posts
    31
    We need more information as to what led you to believe that your desktop may be locked and anything you did beforehand.

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Posts
    2
    Thanks for the reply.
    What exactly I am looking for is this -
    In a program that I am writing, it has to take some action if the computer is locked.

    if(is_comp_locked()) { /* then do this */}

    Hope I am clear now.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •