LEW21 / pydbus

Pythonic DBus library
GNU Lesser General Public License v2.1
327 stars 76 forks source link

Append more information to kwargs for dbus method callback #36

Closed fkwp closed 7 years ago

fkwp commented 7 years ago

This can be usefull to determine, e.g., the caller pid or uid within a dbus method callback. In addition use try except block for the actual method call such that the kwargs argument is optional.

LEW21 commented 7 years ago

They're already a part of dbus_context kwarg.

LEW21 commented 7 years ago

( https://github.com/LEW21/pydbus/blob/master/pydbus/method_call_context.py )