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

Last change on this file since 1941 was 1941, checked in by mabarracus, 4 years ago

fix

  • Property svn:executable set to *
File size: 354 bytes
Line 
1#!/usr/bin/python
2import os
3
4# check if whe are into ltsp environment looking LTSP_FATCLIENT=false or empty
5is_ltsp = os.environ.get('LTSP_FATCLIENT')
6
7# call xfce4-logout-session with (logout action) or without parameter (menu)
8if (is_ltsp == None or is_ltsp == "false"):
9        args = "-l"
10else:
11        args = ""
12
13os.system("/usr/bin/xfce4-session-logout "+args)
Note: See TracBrowser for help on using the repository browser.