mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
silence for kde users who have gnome-keyring installed
This commit is contained in:
parent
de9843405d
commit
8a28a45c6f
@ -40,6 +40,13 @@ try:
|
|||||||
import gobject
|
import gobject
|
||||||
gobject.set_application_name('osc')
|
gobject.set_application_name('osc')
|
||||||
import gnomekeyring
|
import gnomekeyring
|
||||||
|
if os.environ['KDE_FULL_SESSION']:
|
||||||
|
# otherwise gnome keyring bindings spit out errors, when you have
|
||||||
|
# it installed, but you are not under gnome
|
||||||
|
# (even though hundreds of gnome-keyring daemons got started in parallel)
|
||||||
|
# another option would be to support kwallet here
|
||||||
|
GNOME_KEYRING = False
|
||||||
|
else:
|
||||||
GNOME_KEYRING = gnomekeyring.is_available()
|
GNOME_KEYRING = gnomekeyring.is_available()
|
||||||
except:
|
except:
|
||||||
GNOME_KEYRING = False
|
GNOME_KEYRING = False
|
||||||
|
Loading…
Reference in New Issue
Block a user