Accepting request 1175846 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1175846 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-proton-vpn-network-manager?expand=0&rev=4
This commit is contained in:
commit
6e1b1304e1
18
keyring.patch
Normal file
18
keyring.patch
Normal 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(
|
@ -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>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user