1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

silence for kde users who have gnome-keyring installed

This commit is contained in:
Adrian Schröter 2009-09-04 12:24:35 +00:00
parent de9843405d
commit 8a28a45c6f

View File

@ -40,7 +40,14 @@ try:
import gobject
gobject.set_application_name('osc')
import gnomekeyring
GNOME_KEYRING = gnomekeyring.is_available()
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()
except:
GNOME_KEYRING = False