qubes/vm/qubesvm: fix env manipulation on qrexec-daemon start

This commit is contained in:
Wojtek Porczyk 2015-01-13 17:55:13 +01:00
parent eda2f7cf73
commit 04c221e924

View File

@ -914,7 +914,7 @@ class QubesVM(qubes.vm.BaseVM):
qrexec_args = [str(self.xid), self.name, self.default_user]
if not self.debug:
qrexec_args.insert(0, "-q")
qrexec_env = os.environ
qrexec_env = os.environ.copy()
qrexec_env['QREXEC_STARTUP_TIMEOUT'] = str(self.qrexec_timeout)
retcode = subprocess.call([system_path["qrexec_daemon_path"]] +
qrexec_args, env=qrexec_env)