parent
29dbe6ed40
commit
7c3b05dcc8
|
@ -22,7 +22,12 @@ class XTermBuffer(Buffer, XTerm):
|
|||
self._pid, self._pty = pty.fork()
|
||||
if self._pid == 0:
|
||||
# child process
|
||||
env = {'TERM': self.termtype, 'PATH': os.getenv('PATH')}
|
||||
env = {
|
||||
'TERM': self.termtype,
|
||||
'PATH': os.getenv('PATH'),
|
||||
'USER': os.getenv('USER'),
|
||||
'HOME': os.getenv('HOME'),
|
||||
}
|
||||
os.execvpe(cmd, [cmd] + args, env)
|
||||
|
||||
self._lock = threading.Lock()
|
||||
|
|
Loading…
Reference in New Issue