Skip to content
Advertisement

Tag: dbus

How do I read a dbus array of dicts with the c api sd-bus?

I am try to read a dbus data structure that looks like this a{sv} with sd-bus but when i use the code down below i can only read one of the 8 dicts. I have looked up the function sd_bus_message_enter_container on hotexamples.com and all of them seemed to have while more than one loop around the function that enters the

DBus rejecting to send message to a custom service on the system bus

I’m writing a chatbot that (besides other features) allows the admin to send custom message to instant message apps via a DBus call. The chatbot creates a service org.cdpa.cdpachan on the system bus, exposes the interface org.cdpa.bot_send_message and the method send_message. I’m able to get any user to register the service name with the configuration file /usr/share/dbus-1/system.d/org.cdpa.cdpachan.conf But sending DBus

Detailed documentation for systemd’s sd-bus

I have some project which uses libdbus for IPC. The goal is to use systemd’s sd-bus instead of libdbus. There is documentation for sd-bus (here, here and etc), but that documentation doesn’t cover all aspects of D-Bus specification implementation. I spent a lot looking for at least any detailed explanation of sd-bus’ implementation, but didn’t find anything that could help

‘Close window’ button wont work when using tkinter + gobject

My tkinter application runs fine, but to implement dbus functionality I had to use gobject. Got it working and all, except that, running both tkinter’s and gobject’s mainloops makes the “close window” button from the standard window manager (‘x’ button in the window interface) not to work. :/ Everything else works fine, including resizing, minimizing/maximizing, restoring, and moving the window.

How to detect if USB keyboard is plugged and unplugged

Is there any daemon/tool which will trigger some signal/event when USB keyboard is plugged and unplugged from pc? I need to know in my program when USB keyboard is plugged and unplugged. Any ideas on how to do this? Answer udev (Linux device manager) is the one that polls hardware. When it detects some changes about devices, it executes the

Advertisement