1
0
mirror of https://github.com/slgobinath/SafeEyes.git synced 2024-12-25 23:52:42 +01:00

Merge pull request #185 from anarcat/xscreensaver

xscreensaver support
This commit is contained in:
Gobinath 2017-08-26 07:42:23 -04:00 committed by GitHub
commit 2e37056ccd

View File

@ -326,6 +326,9 @@ def lock_screen_command():
if 'deprecated' not in os.environ.get('GNOME_DESKTOP_SESSION_ID') and command_exist('gnome-screensaver-command'):
# Gnome 2
return ['gnome-screensaver-command', '--lock']
elif command_exist('xscreensaver-command'):
# this will fail if the daemon is not running
return os.system('xscreensaver-command -version > /dev/null') == 0
return None