xi-keyring

simple and extensible alternative for gnome-keyring
git clone https://git.ce9e.org/xi-keyring.git

commit
22fda93a86aef7e705a0c6857c8da49ffec9b9f7
parent
2e512433cdadee50d3a1b20ee03a2ad899ffa7ad
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-07-27 15:47
dbus: resolve file descriptors

Diffstat

M xikeyring/dbus.py 6 +++++-

1 files changed, 5 insertions, 1 deletions


diff --git a/xikeyring/dbus.py b/xikeyring/dbus.py

@@ -92,8 +92,12 @@ class BaseDBusService:
   92    92 
   93    93     def call(self, conn, sender, path, iface, method, params, invocation):
   94    94         try:
   -1    95             fds = invocation.get_message().get_unix_fd_list()
   -1    96             types = GLib.Variant.split_signature(params.get_type_string())
   -1    97             args = [fds.get(v) if t == 'h' else v for v, t in zip(params, types)]
   -1    98 
   95    99             error = Gio.DBusError.UNKNOWN_METHOD
   96    -1             result = self._call(conn, sender, path, iface, method, params, error)
   -1   100             result = self._call(conn, sender, path, iface, method, args, error)
   97   101             invocation.return_value(result)
   98   102         except GLib.Error as e:
   99   103             invocation.return_error_literal(e.domain, e.code, e.message)