temporarily add more dbg() statements to try and figure out 227263
This commit is contained in:
parent
699f5a64d7
commit
e4fb8fbaf1
11
terminator
11
terminator
|
@ -181,11 +181,14 @@ class TerminatorTerm (gtk.VBox):
|
||||||
|
|
||||||
self.add_matches()
|
self.add_matches()
|
||||||
|
|
||||||
|
dbg ('SEGBUG: Setting http_proxy')
|
||||||
env_proxy = os.getenv ('http_proxy')
|
env_proxy = os.getenv ('http_proxy')
|
||||||
if not env_proxy and self.conf.http_proxy and self.conf.http_proxy != '':
|
if not env_proxy and self.conf.http_proxy and self.conf.http_proxy != '':
|
||||||
os.putenv ('http_proxy', self.conf.http_proxy)
|
os.putenv ('http_proxy', self.conf.http_proxy)
|
||||||
|
|
||||||
|
dbg ('SEGBUG: Setting COLORTERM')
|
||||||
os.putenv ('COLORTERM', 'gnome-terminal')
|
os.putenv ('COLORTERM', 'gnome-terminal')
|
||||||
|
dbg ('SEGBUG: TerminatorTerm __init__ complete')
|
||||||
|
|
||||||
def on_drag_begin(self, widget, drag_context, data):
|
def on_drag_begin(self, widget, drag_context, data):
|
||||||
dbg ('Drag begins')
|
dbg ('Drag begins')
|
||||||
|
@ -385,10 +388,13 @@ text/plain
|
||||||
if not args:
|
if not args:
|
||||||
args.append (shell)
|
args.append (shell)
|
||||||
|
|
||||||
|
dbg ('SEGBUG: Setting WINDOWID')
|
||||||
os.putenv ('WINDOWID', '%s'%self._vte.get_parent_window().xid)
|
os.putenv ('WINDOWID', '%s'%self._vte.get_parent_window().xid)
|
||||||
|
|
||||||
|
dbg ('SEGBUG: Forking command')
|
||||||
self._pid = self._vte.fork_command (command = shell, argv = args, envv = [], directory=self.cwd, loglastlog = login, logwtmp = update_records, logutmp = update_records)
|
self._pid = self._vte.fork_command (command = shell, argv = args, envv = [], directory=self.cwd, loglastlog = login, logwtmp = update_records, logutmp = update_records)
|
||||||
|
|
||||||
|
dbg ('SEGBUG: Forked command')
|
||||||
if self._pid == -1:
|
if self._pid == -1:
|
||||||
print >>sys.stderr, _('Unable to start shell: ') + shell
|
print >>sys.stderr, _('Unable to start shell: ') + shell
|
||||||
return (-1)
|
return (-1)
|
||||||
|
@ -1279,11 +1285,16 @@ class Terminator:
|
||||||
return
|
return
|
||||||
|
|
||||||
# create a new terminal and parent pane.
|
# create a new terminal and parent pane.
|
||||||
|
dbg ('SEGBUG: Creating TerminatorTerm')
|
||||||
terminal = TerminatorTerm (self, self.profile, None, widget.get_cwd())
|
terminal = TerminatorTerm (self, self.profile, None, widget.get_cwd())
|
||||||
|
dbg ('SEGBUG: Created TerminatorTerm')
|
||||||
pos = vertical and "right" or "bottom"
|
pos = vertical and "right" or "bottom"
|
||||||
self.add(widget, terminal, pos)
|
self.add(widget, terminal, pos)
|
||||||
|
dbg ('SEGBUG: added TerminatorTerm to container')
|
||||||
terminal.show ()
|
terminal.show ()
|
||||||
|
dbg ('SEGBUG: showed TerminatorTerm')
|
||||||
terminal.spawn_child ()
|
terminal.spawn_child ()
|
||||||
|
dbg ('SEGBUG: spawned child')
|
||||||
return terminal
|
return terminal
|
||||||
|
|
||||||
def remove(self, widget):
|
def remove(self, widget):
|
||||||
|
|
Loading…
Reference in New Issue