[deskbar-applet] Removed gdmclient import and fixed switch user action



commit 9eaa78fffc82bf622a8dfa931d1a331c808e1cee
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Fri Sep 24 12:40:01 2010 +0200

    Removed gdmclient import and fixed switch user action

 deskbar/handlers/gdmactions.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/deskbar/handlers/gdmactions.py b/deskbar/handlers/gdmactions.py
index aa2d676..daa90cb 100644
--- a/deskbar/handlers/gdmactions.py
+++ b/deskbar/handlers/gdmactions.py
@@ -6,7 +6,6 @@ import dbus.glib
 import deskbar
 import deskbar.core.Indexer
 import deskbar.core.Utils
-import deskbar.handlers.gdmclient
 import deskbar.interfaces.Action
 import deskbar.interfaces.Match
 import deskbar.interfaces.Module
@@ -324,7 +323,7 @@ class GdmSwitchUserAction(deskbar.interfaces.Action):
         deskbar.interfaces.Action.__init__(self, name)
         
     def activate(self, text=None):
-        deskbar.handlers.gdmclient.new_login()
+        glib.spawn_async(["gdmflexiserver", "--startnew"], flags=glib.SPAWN_SEARCH_PATH)
         
     def get_verb(self):
         return _("Switch User")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]