Also handle the chosen shell failing to spawn. There's not much else we can do than die
This commit is contained in:
parent
ada09ea570
commit
57a8d94339
@ -209,6 +209,10 @@ class TerminatorTerm:
|
||||
|
||||
self._pid = self._vte.fork_command (command = shell, argv = args, envv = [], directory=self.cwd, loglastlog = login, logwtmp = update_records, logutmp = update_records)
|
||||
|
||||
if self._pid == -1:
|
||||
print >>sys.stderr, _('Unable to start shell: ') + shell
|
||||
exit (1)
|
||||
|
||||
def get_cwd (self):
|
||||
""" Return the current working directory of the subprocess.
|
||||
This function requires OS specific behaviours
|
||||
|
Loading…
Reference in New Issue
Block a user