[rhythmbox] magnatune: require a specific Secret version
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] magnatune: require a specific Secret version
- Date: Sun, 21 Aug 2016 22:12:01 +0000 (UTC)
commit 86d5ff2595754eca647986b21db2df91ef126fd8
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Aug 22 08:10:40 2016 +1000
magnatune: require a specific Secret version
plugins/magnatune/MagnatuneAccount.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/magnatune/MagnatuneAccount.py b/plugins/magnatune/MagnatuneAccount.py
index 619bf9a..f36f242 100644
--- a/plugins/magnatune/MagnatuneAccount.py
+++ b/plugins/magnatune/MagnatuneAccount.py
@@ -34,6 +34,8 @@ if rbconfig.libsecret_enabled:
# Till libsecret completely replaces gnome-keyring, we'll fall back to not
# saving the password if libsecret can't be found. This code can be removed later.
try:
+ import gi
+ gi.require_version('Secret', '1')
from gi.repository import Secret
# We need to be able to fetch passwords stored by libgnome-keyring, so we use
# a schema with SECRET_SCHEMA_DONT_MATCH_NAME set.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]