source: lliurex-artwork-defaults/trunk/fuentes/xfce/usr/bin/lliurex-xfce-logout-wrapper @ 1966

Last change on this file since 1966 was 1966, checked in by mabarracus, 4 years ago
  • Improve thin client detection
  • Property svn:executable set to *
File size: 405 bytes
Line 
1#!/usr/bin/python
2import os
3
4# check if whe are into ltsp environment looking LTSP_FATCLIENT=false or empty
5is_fatclient = os.environ.get('LTSP_FATCLIENT')
6is_ltsp = os.environ.get('LTSP_CLIENT')
7
8# call xfce4-logout-session with (logout action) or without parameter (menu)
9if (is_ltsp != None and is_fatclient == "false"):
10        args = "-l"
11else:
12        args = ""
13
14os.system("/usr/bin/xfce4-session-logout "+args)
Note: See TracBrowser for help on using the repository browser.