Is there a way to check for listening clients in DBus?
Is it even possible to do? I'm using gdbus.
Background
I'm creating service which interfaces with serial ports and I want to implicitly open serial ports if someone is listening and…
I would like to write a gnome-shell extension, which involves some dbus calling in gjs.
I have learned that Gio.DBus is the right module to use, but I failed to make it run correctly. To demonstrate what I mean, I prepared the following "incorrect"…
I need to register bluetooth service on Linux PC in C++ and so far, I am able to do it with such code: (taken and shorthened from here).
#include
#include
#include
#define SERIAL_PORT_PROFILE_UUID…
I am trying to learn dbus and compilation/linking of programs on Linux. I am fairly new to building and linking applications from scratch. To this end, I am creating a simple client+server applications on Ubuntu which communicate over gdbus. I am…
I would like to recursively explore an interface with the --recurse
gdbus introspect --system --dest "org.fedoraproject.FirewallD1" --object-path "/org/fedoraproject/FirewallD1" --recurse
add out put the result as XML with the --xml option
gdbus…
I need to change the Secure Simple Pairing mode programmatically, but I can't figure out how to set SSP mode on or off in Bluez using a DBus command.
Using btmgmt utility, I just do:
btmgmt ssp off
btmgmt ssp on
Ok, but what I need is rather DBus…
I implement an app with this com.example.appname.desktop file as follows:
$ cat /usr/local/share/applications/com.example.appname.desktop
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=appname
Exec=/opt/app/appname…
I'm running into issues trying to register to receive the "InvitationReceived" signal from wpa_supplicant's dbus interface for p2p using the gdbus library in C.
I can create a proxy connection to the P2P dbus interface just fine and call methods on…
I have a systemd foo.slice with cgroup setting CPUShares.
My idea is to change the setting at certain point during the system startup, which will be triggered by a systemd service.
I do some test work to check how to change the setting at…
I'm using Gnome on a tablet as a daily driver. The integrated virtual keyboard doesn't serve as a replacement for a real keyboard, but I need exactly that. Thus I want to replace it with Onboard, and started to write an extension for Gnome Shell.…
I need to attach file descriptors to the GLIB mainloop. My issue is that the list of file descriptors is not fixed during execution.
According to GLIB documentation, I can:
create a GIOChannel for each FD using g_io_channel_unix_new and attach it…
Does anyone know of any tools or techniques for detecting memory leaks when using GLib and GDBus? I am relatively new to using both libraries and believe I am using the API's correctly, but it would be great if there was a tool that I could use to…
I currently working on controlling VLC player via DBUS. VLC implements MPRIS. There is a method which is named SetPosition of the MPRIS to set the position of the player. It has the following signuture.
SetPosition (o: TrackId, x: Position)
I…
I have been working to update some old code that uses the deprecated dbus-glib DBUS binding for Glib. The idea is to use GDBus instead. Here is the original code:
`
static gpointer afpstats_thread(gpointer _data) {
DBusGConnection *bus;
…
I am currently trying to access cellular modem data from within a C application on Linux using mmlib-glib.
When trying to establish a GDBusConnection on a GFileIOStream created from a GFile from path /dev/cdc-wdm0, the call to…