In GDBus it's possible to watch for a particular name to appear on the bus with g_bus_watch_name_on_connection(). It's also possible to be notified about new interfaces/objects added on objects implementing the org.freedesktop.DBus.ObjectManager…
I want to create a tuple of array of dictionary to pass argument to method RequestScan (IN a{sv} options). I write code as below.
/* Create empty dictionary */
GVariantBuilder *b;
GVariant *option;
b =…
I am trying to use the systemd API (SetLinkDomain) with gdbus bindings, below is the example code,
GVariant *BuidArray()
{
GVariantBuilder *struc = g_variant_builder_new(G_VARIANT_TYPE("(sb)"));
const char *name = "abc.net";
…
I am trying to detect added Bluetooth devices/adapters using Bluez D-Bus API and GDBus. However, I am unable to check the name of the added D-Bus interface.
I already tried accessing the interface name using the underlying GDBusInterfaceInfo C…
I am writing cmake example for the first time.
Here is a part of CMakeFiles.txt:
add_custom_command(
OUTPUT ${CODEGEN_SRC}
PRE_BUILD
COMMAND ${CODEGEN_CMD} ${SERVICE_XML} --generate-cpp- code=/home/hello/include/gen/testGenCode
COMMENT…
I have 2 linux gnome commands that I would like to merge into one.
One is giving me the title:
gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval global.get_window_actors\(\)[`gdbus call -e -d org.gnome.Shell -o…
I am trying to send the signal on dbus (g_dbus_connection_emit_signal), inside the method call. I have a client program which communicates with server program using dbus. when I call a method on server side, it redirects to that method function and…
I want to write a short program, which triggers the Thumbnail creation for all pictures on my network share recursively (e.g. over night) - so that when I access a folder in Thunar, the thumbs are displayed immediately.
I would say, that when I can…
I am trying to create a peer-to-peer gdbus communication on a linux system. I used gdbus-codegen tool to generate the code which I can use to create the server. My server program instantiates an object using the generated skeleton functions and…
I try to read out the ActiveState property of a systemd unit with gdbus/glib-2.0. For sd-bus there exists the convenient function sd_bus_get_property_string. What would the equivalent call if gdbus is used. I am ware of the gdbus introspect command,…
I have an application in which I'm using UDisks to handle some drives and partitions. In my application I have a situation where I have a pointer to a UDisksDrive that I need to convert to a UDisksObject pointer through which I can access other…
On a GNOME Xorg session, to get the return value of method GetIdletime exposed on DBus, you can either use
$ dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core…
My system is a centos with no gui. I have a server application which "listens" for a method call in a session dbus. It apparently works fine. I have pydbus and python3-gobject installed fine, I also have dbus-launch working. This is the server…