mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Don't load a keyring backend on Linux
We do not support it on Linux and it can cause problems if there is a system keyring configured. CURA-8490
This commit is contained in:
parent
e5856bf6bc
commit
b1dc38f126
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ if Platform.isWindows() and hasattr(sys, "frozen"):
|
|||
if Platform.isOSX() and hasattr(sys, "frozen"):
|
||||
from keyring.backends.macOS import Keyring
|
||||
keyring.set_keyring(Keyring())
|
||||
if Platform.isLinux() and hasattr(sys, "frozen"):
|
||||
# We do not support the keyring on Linux, so make sure no Keyring backend is loaded, even if there is a system one.
|
||||
from keyring.backends.fail import Keyring
|
||||
keyring.set_keyring(Keyring())
|
||||
|
||||
# Even if errors happen, we don't want this stored locally:
|
||||
DONT_EVER_STORE_LOCALLY: List[str] = ["refresh_token"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue