diff options
author | Dan Williams <dcbw@localhost.localdomain> | 2006-12-19 21:00:50 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@localhost.localdomain> | 2006-12-19 21:00:50 (GMT) |
commit | cebf9cfe334e0bc185179682a2bfa57836993f05 (patch) | |
tree | 0d54b145d4d2ff7c0c7722b40cf40782be06777a /shell | |
parent | 2402d0461d654d13ca4cca99f9efcd996c4d97fb (diff) |
Use correct DBus session bus when launching activities
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/sugar-activity | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/sugar-activity b/shell/sugar-activity index 8a237ae..c4a14cf 100755 --- a/shell/sugar-activity +++ b/shell/sugar-activity @@ -20,5 +20,13 @@ import sys import os from sugar.activity import ActivityFactory +from sugar import env + +ppath = env.get_profile_path() +bus_file = os.path.join(ppath, "session_bus_address") +f = open(bus_file, "r") +bus_name = f.read() +f.close() +os.environ['DBUS_SESSION_BUS_ADDRESS'] = bus_name ActivityFactory.create(sys.argv[1]) |