Ana Guerrero 2024-05-22 19:33:12 +00:00 committed by Git OBS Bridge
commit 6e1b1304e1
3 changed files with 25 additions and 0 deletions

18
keyring.patch Normal file
View File

@ -0,0 +1,18 @@
diff --git a/proton/vpn/backend/linux/networkmanager/core/networkmanager.py b/proton/vpn/backend/linux/networkmanager/core/networkmanager.py
index 8fd7e55..a5b4149 100644
--- a/proton/vpn/backend/linux/networkmanager/core/networkmanager.py
+++ b/proton/vpn/backend/linux/networkmanager/core/networkmanager.py
@@ -116,6 +116,13 @@ class LinuxNetworkManager(VPNConnection):
self._notify_subscribers(events.Disconnected(EventContext(connection=self)))
return
+ try:
+ import keyring
+ k = keyring.get_keyring()
+ k.get_credential('ProtonVPN', 'ProtonUser')
+ except:
+ pass
+
try:
future_vpn_connection = self.nm_client.start_connection_async(connection)
vpn_connection = await loop.run_in_executor(

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 22 11:59:17 UTC 2024 - Alexandre Vicenzi <alexandre.vicenzi@suse.com>
- Add keyring.patch to unlock Gnome Keyring if locked
-------------------------------------------------------------------
Sun Apr 21 08:50:59 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -26,6 +26,8 @@ License: GPL-3.0-or-later
Group: Development/Languages/Python
URL: https://github.com/ProtonVPN/python-proton-vpn-network-manager
Source: https://github.com/ProtonVPN/python-proton-vpn-network-manager/archive/refs/tags/v%{version}.tar.gz
# https://github.com/ProtonVPN/proton-vpn-gtk-app/issues/43
Patch1: keyring.patch
BuildRequires: %{python_module gobject}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module proton-core}