[nanny: 12/13] Add fallback for closing LXDE session.
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny: 12/13] Add fallback for closing LXDE session.
- Date: Fri, 6 Jul 2012 13:30:24 +0000 (UTC)
commit 7c170260c8b44d36e85abace025acc2413a141b3
Author: Guido Tabbernuk <boamaod gmail com>
Date: Tue Jun 5 00:48:31 2012 +0300
Add fallback for closing LXDE session.
client/gnome/admin/src/DesktopBlocker.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/client/gnome/admin/src/DesktopBlocker.py b/client/gnome/admin/src/DesktopBlocker.py
index 78cb64a..8345612 100755
--- a/client/gnome/admin/src/DesktopBlocker.py
+++ b/client/gnome/admin/src/DesktopBlocker.py
@@ -296,7 +296,7 @@ class DesktopBlocker(gtk.Window):
for proc in proclist:
if len(gtop.proc_args(proc))==0:
continue
- if gtop.proc_args(proc)[0] == "x-session-manager" or gtop.proc_args(proc)[0] == "/usr/bin/x-session-manager" or gtop.proc_args(proc)[0] == "/usr/bin/gnome-session" or gtop.proc_args(proc)[0] == "gnome-session":
+ if gtop.proc_args(proc)[0] == "x-session-manager" or gtop.proc_args(proc)[0] == "/usr/bin/x-session-manager" or gtop.proc_args(proc)[0] == "/usr/bin/gnome-session" or gtop.proc_args(proc)[0] == "gnome-session" or gtop.proc_args(proc)[0] == "/usr/bin/lxsession" or gtop.proc_args(proc)[0] == "lxsession":
cmd = "kill -9 %s" % (proc)
print "Executing fallback:", cmd
Popen(cmd, shell=True, stdout=PIPE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]