mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-12 02:04:04 +02:00
silence for kde users who have gnome-keyring installed
This commit is contained in:
@@ -40,6 +40,13 @@ try:
|
||||
import gobject
|
||||
gobject.set_application_name('osc')
|
||||
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()
|
||||
except:
|
||||
GNOME_KEYRING = False
|
||||
|
Reference in New Issue
Block a user