Improve formatting
This commit is contained in:
parent
a1c3bc264d
commit
b602ecfe9c
@ -364,6 +364,7 @@ text/plain
|
|||||||
self.matches['email'] = self._vte.match_add (lboundry + "(mailto:)?[a-zA-Z0-9][a-zA-Z0-9.+-]*@[a-zA-Z0-9][a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+[.a-zA-Z0-9-]*" + rboundry)
|
self.matches['email'] = self._vte.match_add (lboundry + "(mailto:)?[a-zA-Z0-9][a-zA-Z0-9.+-]*@[a-zA-Z0-9][a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+[.a-zA-Z0-9-]*" + rboundry)
|
||||||
self.matches['nntp'] = self._vte.match_add (lboundry + '''news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@[-A-Za-z0-9.]+(:[0-9]+)?''' + rboundry)
|
self.matches['nntp'] = self._vte.match_add (lboundry + '''news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@[-A-Za-z0-9.]+(:[0-9]+)?''' + rboundry)
|
||||||
|
|
||||||
|
|
||||||
def spawn_child (self, event=None):
|
def spawn_child (self, event=None):
|
||||||
update_records = self.conf.update_records
|
update_records = self.conf.update_records
|
||||||
login = self.conf.login_shell
|
login = self.conf.login_shell
|
||||||
@ -419,14 +420,19 @@ text/plain
|
|||||||
dbg ('SEGBUG: Setting WINDOWID')
|
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: "%s" with args "%s", loglastlog = "%s", logwtmp = "%s", logutmp = "%s" and cwd "%s"'%(shell, args, login, update_records, update_records, self.cwd))
|
dbg ('SEGBUG: Forking command: "%s" with args "%s", loglastlog = "%s", ' \
|
||||||
self._pid = self._vte.fork_command (command = shell, argv = args, envv = [], loglastlog = login, logwtmp = update_records, logutmp = update_records, directory=self.cwd)
|
'logwtmp = "%s", logutmp = "%s" and cwd "%s"' % (shell, args, login,
|
||||||
|
update_records, update_records, self.cwd))
|
||||||
|
self._pid = self._vte.fork_command (command = shell, argv = args,
|
||||||
|
envv = [], loglastlog = login, logwtmp = update_records,
|
||||||
|
logutmp = update_records, directory=self.cwd)
|
||||||
|
|
||||||
dbg ('SEGBUG: Forked command')
|
dbg ('SEGBUG: Forked command')
|
||||||
if self._pid == -1:
|
if self._pid == -1:
|
||||||
err (_('Unable to start shell: ') + shell)
|
err (_('Unable to start shell: ') + shell)
|
||||||
return (-1)
|
return (-1)
|
||||||
|
|
||||||
|
|
||||||
def get_cwd (self):
|
def get_cwd (self):
|
||||||
""" Return the current working directory of the subprocess.
|
""" Return the current working directory of the subprocess.
|
||||||
This function requires OS specific behaviours
|
This function requires OS specific behaviours
|
||||||
|
Loading…
Reference in New Issue
Block a user