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 |
---|
2 | import os |
---|
3 | |
---|
4 | # check if whe are into ltsp environment looking LTSP_FATCLIENT=false or empty |
---|
5 | is_ltsp = os.environ.get('LTSP_FATCLIENT') |
---|
6 | |
---|
7 | # call xfce4-logout-session with (logout action) or without parameter (menu) |
---|
8 | if (is_ltsp == None or is_ltsp == "false"): |
---|
9 | args = "-l" |
---|
10 | else: |
---|
11 | args = "" |
---|
12 | |
---|
13 | os.system("/usr/bin/xfce-session-logout "+args) |
---|
Note: See
TracBrowser
for help on using the repository browser.