diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-03-15 13:30:01 -0300 |
---|---|---|
committer | kali <kali@leap.se> | 2013-03-21 23:01:50 +0900 |
commit | 8f54774f6c3f779527718a0158ebd0efc4aab588 (patch) | |
tree | 8a746424f81698b03cabcc481196273672b5601e /src/leap/services/eip/vpn.py | |
parent | ddbad58fc2b3f44a293eeac7790a06f13b56944a (diff) |
Handle configuration and paths in a standalone way
Also, abstracts QSettings under LeapSettings and adds a way to define
the VPN env in a platform dependant way.
Diffstat (limited to 'src/leap/services/eip/vpn.py')
-rw-r--r-- | src/leap/services/eip/vpn.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/services/eip/vpn.py b/src/leap/services/eip/vpn.py index 66b39dd9..4ac7f8a2 100644 --- a/src/leap/services/eip/vpn.py +++ b/src/leap/services/eip/vpn.py @@ -157,7 +157,14 @@ class VPN(QtCore.QThread): socket_host=socket_host, socket_port=socket_port) try: + env = QtCore.QProcessEnvironment.systemEnvironment() + for key, val in self._launcher.get_vpn_env(providerconfig).items(): + env.insert(key, val) + self._subp = QtCore.QProcess() + + self._subp.setProcessEnvironment(env) + self._subp.finished.connect(self.process_finished) self._subp.start(command[:1][0], command[1:]) logger.debug("Waiting for started...") |