Skip to content

Commit

Permalink
Prefer KF5 in kwallet to KF4. Fixes #168.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 12, 2016
1 parent ea78799 commit 7fc3b2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
CHANGES
=======

---
8.5
---

* Issue #168: Now prefer KF5 Kwallet to KF4. Users relying
on KF4 must use prior releases.

---
8.4
---
Expand Down
6 changes: 3 additions & 3 deletions keyring/backends/kwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def priority(cls):
except dbus.DBusException as exc:
raise RuntimeError(exc.get_dbus_message())
try:
bus.get_object('org.kde.kwalletd', '/modules/kwalletd')
bus.get_object('org.kde.kwalletd5', '/modules/kwalletd5')
except dbus.DBusException:
raise RuntimeError('cannot connect to org.kde.kwalletd')
raise RuntimeError('cannot connect to org.kde.kwalletd5')
return 5.1

def __init__(self, *arg, **kw):
Expand All @@ -42,7 +42,7 @@ def connected(self):
bus = dbus.SessionBus()
wId = 0
try:
remote_obj = bus.get_object('org.kde.kwalletd', '/modules/kwalletd')
remote_obj = bus.get_object('org.kde.kwalletd5', '/modules/kwalletd5')
self.iface = dbus.Interface(remote_obj, 'org.kde.KWallet')
self.handle = self.iface.open(
self.iface.networkWallet(), wId, self.appid)
Expand Down

0 comments on commit 7fc3b2f

Please sign in to comment.