add an ACE option to disable the use of Gnome Keyring. fixes #2835
This commit is contained in:
parent
9284e84f3e
commit
77d9f89eee
|
@ -221,6 +221,7 @@ class Config:
|
||||||
'ctrl_tab_go_to_next_composing': [opt_bool, True, _('Ctrl-Tab go to next composing tab when none is unread.')],
|
'ctrl_tab_go_to_next_composing': [opt_bool, True, _('Ctrl-Tab go to next composing tab when none is unread.')],
|
||||||
'confirm_metacontacts': [ opt_str, '', _('Should we show the confirm metacontacts creation dialog or not? Empty string means we never show the dialog.')],
|
'confirm_metacontacts': [ opt_str, '', _('Should we show the confirm metacontacts creation dialog or not? Empty string means we never show the dialog.')],
|
||||||
'enable_negative_priority': [ opt_bool, False, _('If True, you will be able to set a negative priority to your account in account modification window. BE CAREFULL, when you are logged in with a negative priority, you will NOT receive any message from your server.')],
|
'enable_negative_priority': [ opt_bool, False, _('If True, you will be able to set a negative priority to your account in account modification window. BE CAREFULL, when you are logged in with a negative priority, you will NOT receive any message from your server.')],
|
||||||
|
'use_gnomekeyring': [opt_bool, True, _('If True, Gajim will use Gnome Keyring (if available) to store account passwords.')],
|
||||||
}
|
}
|
||||||
|
|
||||||
__options_per_key = {
|
__options_per_key = {
|
||||||
|
|
|
@ -18,12 +18,14 @@ import gobject
|
||||||
|
|
||||||
from common import gajim
|
from common import gajim
|
||||||
|
|
||||||
try:
|
USER_HAS_GNOMEKEYRING = False
|
||||||
|
USER_USES_GNOMEKEYRING = False
|
||||||
|
if gajim.config.get('use_gnomekeyring'):
|
||||||
|
try:
|
||||||
import gnomekeyring
|
import gnomekeyring
|
||||||
except ImportError:
|
except ImportError:
|
||||||
USER_HAS_GNOMEKEYRING = False
|
pass
|
||||||
USER_USES_GNOMEKEYRING = False
|
else:
|
||||||
else:
|
|
||||||
USER_HAS_GNOMEKEYRING = True
|
USER_HAS_GNOMEKEYRING = True
|
||||||
if gnomekeyring.is_available():
|
if gnomekeyring.is_available():
|
||||||
USER_USES_GNOMEKEYRING = True
|
USER_USES_GNOMEKEYRING = True
|
||||||
|
|
Loading…
Reference in New Issue