Questions tagged [gdbus]

Tool for working with D-Bus objects

Simple tool for working with D-Bus objects: More info: manual

102 questions
0
votes
1 answer

Meaning of Network Manager Dbus codes 'aa{ss}'

I am making a script to do IO to the NetworkManager over dbus. In the gnome developer docs function arguments are represented as things like 'aa{ss}' but i cannot find a description of there meaning. Example RouteData readable aa{sv} """<-this…
Ada
  • 97
  • 1
  • 11
0
votes
1 answer

Emit D-Bus signal using GDBus without owning a well-known name

I would like to use dbus to signal other instances of the same family of applications. It seems that to issue a signal I must execute a g_bus_own_name, emit the signal when the name is acquired, then g_bus_unown_name. This seems like a bit of palava…
Michael K.
  • 21
  • 1
  • 5
0
votes
1 answer

g_signal_connect on proxy handler results in callback GVariant * data uninitialized

I'm pretty much following the example on https://www.freedesktop.org/software/gstreamer-sdk/data/docs/latest/gio/GDBusProxy.html in order to set up Connman signal callbacks on dbus, however in my callback function: g_signal_connect( …
Tyler Cox
  • 117
  • 1
  • 10
0
votes
1 answer

Varying amount of Arguments in Pydbus

I now set up a Pydbus server and exported some methods, but one method keeps me guessing. The amount of arguments used in this method is changing. In Python this is simply done with MyMethod(*arg, **kwarg). If I write this function into my XML…
0
votes
1 answer

What gdbus function returns a list of child object nodes?

I am able to introspect a DBus node, and get some XML which includes information about the child nodes. However, this requires me to parse XML, and I'm trying to keep the application lightweight. What gdbus function can I use to simply get a list…
deltamind106
  • 638
  • 7
  • 19
0
votes
1 answer

D-Bus API or C library to control firewalld

I'm working on a project, implementing everything in C language. As a part of the project, we need to be able to control and configure firewalld, firewall of the current system. firewalld is implemented in Python and an interface is available.…
Motun
  • 2,149
  • 3
  • 16
  • 23
0
votes
1 answer

Qtcreator error adding symbols: DSO missing from command line

My specific error is when trying to run a GDBus example code from here: https://developer.gnome.org/gio/2.30/GDBusConnection.html The error looks like this: /usr/bin/ld: main.o: undefined reference to symbol…
zepperik
  • 77
  • 9
0
votes
1 answer

not able to connect to session dbus from service in ubuntu

I have to run my application as service in ubuntu 16.04. I am using systemd to make it run as service during bootup time. My application has to connect to both session dbus and system dbus. connecting to system dbus is successful. But connecting…
deepan muthusamy
  • 321
  • 2
  • 14
0
votes
1 answer

Using gdbus-codegen for dbus method call, server side works but response string on client side is always NULL

Using gdbus-codegen for dbus method call, server side works but response string on client side is always NULL. Specifically the buffer in the call new_cfg_gdbus_call_receive_new_config_sync(proxy, "new_cfg", buf, NULL, &error); is NULL, I am…
zarzar
  • 1
  • 4
0
votes
1 answer

How do I selectively disable the GDBus "PropertiesChanged" signal?

I am building an MPRIS D-Bus Interface for an application in C using GDBus facilities generated automagically using the gdbus-codegen tool. When a property is altered, a "PropertiesChanged" signal is automatically generated, which is fine most of…
0
votes
2 answers

How can I do "export $(dbus-launch) in booting

I'm using GDbus and make a dbus communication. It using sesstion bus. Problem is dbus-launch. I was running dbus in Yocto with c++11. And, I have to export $(dbus-launch). But, I want to export $(dbus-launch) or same thing in booting time. Because…
Jaekwon Kim
  • 29
  • 2
  • 6
0
votes
2 answers

c++ gdbus - how to fetch the property of interface using gdbus library?

I would like to know the approach/code snippet to fetch the property from a dbus interface using c++ code snippet. I have tried the following approaches with error. Approach#1 using g_dbus_proxy_get_cached_property but it is always returning…
0
votes
2 answers

C++ library for receiving network interface up/down notification with interface name on Ubuntu

This post has two questions. 1. network interface up/down notification on a specific network device 2. list the network devices. See below for the answers provided by me. (Thanks to Velkan for helping me in arriving at this) I am looking for a c++…
0
votes
1 answer

How to use types generated by gdbus-codegen?

I am implementing a dbus server, and to simplify things, I decided to use gdbus-codegen. This hello world example and it's repository are going to generate header and source files. Then it do this to connect the signal to the…
BЈовић
  • 62,405
  • 41
  • 173
  • 273
0
votes
1 answer

How to send Vala ArrayList through D-Bus?

Trying to send data from server to client and getting this error: error: GVariant serialization of type `Gee.ArrayList' is not supported public abstract ArrayList get_event_list () throws IOError;
stsdc
  • 406
  • 5
  • 14