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

Last change on this file since 1940 was 1940, checked in by mabarracus, 5 years ago
  • Add logout whiskermenu wrapper to xfce-logout-session to avoid reboots into ltsp thin clients
  • Property svn:executable set to *
File size: 353 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/xfce-session-logout "+args)
Note: See TracBrowser for help on using the repository browser.