Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2009-02-26 20:50:21 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2009-02-26 20:50:21 (GMT)
commita535244de8d97e3002ccd714b5111eb2c42bb2ac (patch)
treec1a8ec739bbd57df1e19d99f5c1ef944d0f8c951
parente973a1f4fe2070b9c6d01346b30921488496bc8f (diff)
Leave tab bar on always.
-rw-r--r--terminal.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/terminal.py b/terminal.py
index ec7c899..ca956b9 100644
--- a/terminal.py
+++ b/terminal.py
@@ -199,7 +199,7 @@ class TerminalActivity(sugar.activity.activity.Activity):
index = self.notebook.append_page(box, label)
self.notebook.show_all()
- self.notebook.props.show_tabs = self.notebook.get_n_pages() > 1
+ #self.notebook.props.show_tabs = self.notebook.get_n_pages() > 1
# Launch the default shell in the HOME directory.
os.chdir(os.environ["HOME"])
@@ -208,20 +208,18 @@ class TerminalActivity(sugar.activity.activity.Activity):
# Restore the environment.
env = tab_state['env']
- filtered_vars = []
+ filtered_env = []
for e in env:
var, sep, value = e.partition('=')
if var not in MASKED_ENVIRONMENT:
- filtered_vars.append(var + sep + value)
+ filtered_env.append(var + sep + value)
# Restore working directory.
- vt.feed(var + ' = ' + value + '\r\n')
if var == 'PWD':
- vt.feed('chdir '+ value + '\r\n')
os.chdir(value)
# TODO: Make the shell restore these environment variables, then clear out TERMINAL_ENV.
- #os.environ['TERMINAL_ENV'] = '\n'.join(filtered_vars)
+ #os.environ['TERMINAL_ENV'] = '\n'.join(filtered_env)
# Restore the scrollback buffer.
for l in tab_state['scrollback']:
@@ -301,6 +299,7 @@ class TerminalActivity(sugar.activity.activity.Activity):
scrollback_lines = scrollback_text.split('\n')
environment = open('/proc/%d/environ' % page.pid, 'r').read().split('\0')
+ print '\n'.join(environment)
tab_state = { 'env': environment, 'cwd': '', 'scrollback': scrollback_lines }