projects
/
drlaunch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97ecd4b
)
Only create one instance of dbus.
author
Stefanos Harhalakis
<v13@v13.gr>
Mon, 2 Aug 2010 21:50:56 +0000
(21:50 +0000)
committer
Stefanos Harhalakis
<v13@v13.gr>
Mon, 2 Aug 2010 21:50:56 +0000
(21:50 +0000)
src/launcher.py
patch
|
blob
|
history
diff --git
a/src/launcher.py
b/src/launcher.py
index
dacde19
..
36d14bc
100755
(executable)
--- a/
src/launcher.py
+++ b/
src/launcher.py
@@
-30,10
+30,12
@@
proxy=None
def init():
global bus, proxy
- bus=dbus.SessionBus()
+ if bus==None:
+ bus=dbus.SessionBus()
- proxy=bus.get_object('com.nokia.HildonDesktop.AppMgr',
- '/com/nokia/HildonDesktop/AppMgr')
+ if proxy==None:
+ proxy=bus.get_object('com.nokia.HildonDesktop.AppMgr',
+ '/com/nokia/HildonDesktop/AppMgr')
def launch(prog):
global bus, proxy