Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-12-14 22:21:25 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-12-14 22:21:25 (GMT)
commit72b538321415729325b2e368a742c4a1a3760ac6 (patch)
treed2fdfc461120b9aee536fc0c8450729682499348 /shell
parent461b5ae2a93a0cdca8d57d7f07de77f5741d0c45 (diff)
Export session bus address for testing purposes
Diffstat (limited to 'shell')
-rwxr-xr-xshell/sugar-shell12
1 files changed, 11 insertions, 1 deletions
diff --git a/shell/sugar-shell b/shell/sugar-shell
index 1620aa3..67c8029 100755
--- a/shell/sugar-shell
+++ b/shell/sugar-shell
@@ -44,6 +44,15 @@ if not name or not len(name):
dialog.run()
profile.update()
+# Save our DBus Session Bus address somewhere it can be found
+#
+# WARNING!!! this is going away at some near future point, do not rely on it
+#
+dsba_file = os.path.join(env.get_profile_path(), "session_bus_address")
+f = open(dsba_file, "w")
+f.write(os.environ["DBUS_SESSION_BUS_ADDRESS"])
+f.close()
+
model = ShellModel()
shell = Shell(model)
@@ -53,10 +62,11 @@ args = ["sugar-nm-applet"]
flags = gobject.SPAWN_SEARCH_PATH
result = gobject.spawn_async(args, flags=flags, standard_output=False)
-
tbh = TracebackUtils.TracebackHelper()
try:
gtk.main()
except KeyboardInterrupt:
print 'Ctrl+C pressed, exiting...'
del tbh
+
+os.remove(dsba_file)