[gjc] workaround gnome-keyring-daemon bug. see #2595
This commit is contained in:
parent
dba0a34a74
commit
6466c45d74
1 changed files with 12 additions and 4 deletions
|
@ -46,7 +46,15 @@ class SimplePasswordStorage(PasswordStorage):
|
||||||
|
|
||||||
class GnomePasswordStorage(PasswordStorage):
|
class GnomePasswordStorage(PasswordStorage):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.keyring = gnomekeyring.get_default_keyring_sync()
|
# self.keyring = gnomekeyring.get_default_keyring_sync()
|
||||||
|
|
||||||
|
## above line commented and code below inserted as workaround
|
||||||
|
## for the bug http://bugzilla.gnome.org/show_bug.cgi?id=363019
|
||||||
|
self.keyring = "default"
|
||||||
|
try:
|
||||||
|
gnomekeyring.create_sync(self.keyring, None)
|
||||||
|
except gnomekeyring.AlreadyExistsError:
|
||||||
|
pass
|
||||||
|
|
||||||
def get_password(self, account_name):
|
def get_password(self, account_name):
|
||||||
conf = gajim.config.get_per('accounts', account_name, 'password')
|
conf = gajim.config.get_per('accounts', account_name, 'password')
|
||||||
|
|
Loading…
Add table
Reference in a new issue