From 13a91a26e1089065354de8979567d131c970bbbe Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 29 Jul 2007 00:17:45 +0200 Subject: [PATCH] Make raw X windows work again. --- shell/model/homeactivity.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shell/model/homeactivity.py b/shell/model/homeactivity.py index 8b6a8dc5..e5e00cd8 100644 --- a/shell/model/homeactivity.py +++ b/shell/model/homeactivity.py @@ -184,9 +184,15 @@ class HomeActivity(gobject.GObject): return self._launching def _get_service_name(self): - return _SERVICE_NAME + self._activity_id + if self._activity_id: + return _SERVICE_NAME + self._activity_id + else: + return None def _retrieve_service(self): + if not self._activity_id: + return + try: bus = dbus.SessionBus() proxy = bus.get_object(self._get_service_name(),