summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/services/eip/vpn.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/services/eip/vpn.py b/src/leap/services/eip/vpn.py
index 3ec32f6f..b9988117 100644
--- a/src/leap/services/eip/vpn.py
+++ b/src/leap/services/eip/vpn.py
@@ -318,10 +318,11 @@ class VPN(QtCore.QThread):
if __name__ == "__main__":
- app = QtGui.QApplication(sys.argv)
-
+ import os
import signal
+ app = QtGui.QApplication(sys.argv)
+
def sigint_handler(*args, **kwargs):
logger.debug('SIGINT catched. shutting down...')
vpn_thread = args[0]
@@ -352,7 +353,7 @@ if __name__ == "__main__":
if provider.load("leap/providers/bitmask.net/provider.json"):
vpn_thread.start(eipconfig=eipconfig,
providerconfig=provider,
- socket_host="/home/chiiph/vpnsock",
+ socket_host=os.path.expanduser("~/vpnsock"),
socket_port="unix")
timer = QtCore.QTimer()