Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/sugar-console
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-07-20 10:13:47 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-07-20 10:13:47 (GMT)
commitd6ec6db8809659e827a2d5f6387451084e99338c (patch)
tree012f022e2116955cbc66be6536d4a4821af006f7 /shell/sugar-console
parent87cb115aa0155291d2473537a3fa2da1400c174f (diff)
Make the console contextual to the activity and use the
window manager to activate it.
Diffstat (limited to 'shell/sugar-console')
-rwxr-xr-xshell/sugar-console8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/sugar-console b/shell/sugar-console
new file mode 100755
index 0000000..ed9c162
--- /dev/null
+++ b/shell/sugar-console
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SessionBus()
+proxy_obj = bus.get_object('com.redhat.Sugar.Shell', '/com/redhat/Sugar/Shell')
+shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.Shell')
+shell.show_console()