Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stone <michael@laptop.org>2008-02-11 20:59:16 (GMT)
committer Michael Stone <michael@laptop.org>2008-02-11 20:59:16 (GMT)
commitc7ea367f3b4108e0edabb01e4c6500495869f0ba (patch)
tree6558460437d5c42d4d89158cbe036a512587a48d
parent12f71e7d6d6730ec767434ed02cf35241521dffd (diff)
#6316: Cause the 'become root' button to fork a root terminal.
-rw-r--r--terminal.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/terminal.py b/terminal.py
index 967122f..7d105d8 100644
--- a/terminal.py
+++ b/terminal.py
@@ -93,9 +93,7 @@ class TerminalActivity(activity.Activity):
self._vte.paste_clipboard()
def _become_root_cb(self, button):
-
- # The become_root script is part of olpc-utils.
- self._vte.feed_child("become_root\n")
+ self._vte.fork_command("/bin/su")
def __key_press_cb(self, window, event):
if event.state & gtk.gdk.CONTROL_MASK and event.state & gtk.gdk.SHIFT_MASK: