Find the answer to your Linux question:
Results 1 to 2 of 2
Hello. Is it possible to create a lock screen to Linux? or create a program: Using python or c GUI program, create a software that will block the computer while ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    1

    creating a lock screen


    Hello.

    Is it possible to create a lock screen to Linux?

    or create a program:
    Using python or c GUI program, create a software that will block the computer while the user doesn't make what the software "wants".
    The program needs to stay in full screen mode, the user can not access to the button: minimize, maximize, close and keyboard shortcut.

    Any other way?



    thanks for your time

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hello and welcome!

    There is probably a way to natively lock the screen using the libraries/functions provided by the target system's X server. Assuming a Linux target and an Xorg server, you could look at the Xorg source.

    An easier way might be to just implement the screensaver functionality in the DM's screensaver, though. You could make it a simple script that calls the command to lock the screen, or embed the system call in a simple GNU C program.

    The two most popular screensavers I typically run into are gnome-screensaver and Xscreensaver. Here is how to lock the screen using them:
    Code:
    gnome-screensaver-command -lock
    Code:
    xscreensaver-command -lock
    These commands would lock the the Desktop screen. The user currently logged in would then be able to unlock it by entering their password.

Posting Permissions

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