mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2024-12-27 00:02:36 +01:00
commit
2e37056ccd
@ -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'):
|
if 'deprecated' not in os.environ.get('GNOME_DESKTOP_SESSION_ID') and command_exist('gnome-screensaver-command'):
|
||||||
# Gnome 2
|
# Gnome 2
|
||||||
return ['gnome-screensaver-command', '--lock']
|
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
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user