From caf9696e2bda11afd47f8b17f6c8f98adc474845 Mon Sep 17 00:00:00 2001 From: Naohiro Aota Date: Thu, 27 Feb 2020 11:47:15 +0900 Subject: [PATCH] Properly connect to the selected VPN profile The vpn module is trying to connect "self._connected_vpn_profile", but it is None when no VPN is connected. As a result, the VPN connecting menu is not working. Use "self._selected_vpn_profile" to connect the selected one. --- bumblebee/modules/vpn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/vpn.py b/bumblebee/modules/vpn.py index a43e36b..6ce7850 100644 --- a/bumblebee/modules/vpn.py +++ b/bumblebee/modules/vpn.py @@ -76,7 +76,7 @@ class Module(bumblebee.engine.Module): try: bumblebee.util.execute("nmcli c up \"{vpn}\"" - .format(vpn=self._connected_vpn_profile)) + .format(vpn=self._selected_vpn_profile)) self._connected_vpn_profile = name except Exception as e: logging.exception("Couldn't establish VPN connection")