Add lock command for Pantheon (See #111)

This commit is contained in:
Gobinath 2017-04-12 11:00:28 -04:00
parent 34802d4a31
commit e025e62bbc
1 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,8 @@ def lock_screen_command():
return ['gnome-screensaver-command', '--lock']
elif desktop_session == 'cinnamon':
return ['cinnamon-screensaver-command', '--lock']
elif desktop_session == 'pantheon':
return ['light-locker-command', '--lock']
elif desktop_session == 'mate':
return ['mate-screensaver-command', '--lock']
elif desktop_session == 'kde' or 'plasma' in desktop_session or desktop_session.startswith('kubuntu') or os.environ.get('KDE_FULL_SESSION') == 'true':