Questions tagged [gdbus]

Tool for working with D-Bus objects

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

102 questions
1
vote
1 answer

how to check the implementation of struct _ when using gdbus-codegen

in this repository https://github.com/chiehmin/gdbus_test/blob/master/minminbus.h #define MIN_MIN_BUS_TYPE_GDBUS (min_min_bus_gdbus_get_type ()) #define MIN_MIN_BUS_GDBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), MIN_MIN_BUS_TYPE_GDBUS,…
1
vote
1 answer

How do I get the current page number from an open PDF document in Evince using DBus?

If I open a PDF document inside evince (GNOME Document Viewer), how do I get the current page number using DBus? using zathura I could get the page number using the following command: busctl get-property --user org.pwmt.zathura.PID-1123767 \ …
Amazigh_05
  • 241
  • 1
  • 8
1
vote
1 answer

Is there any other way to set the properties of the interface in gbdus besides using this method?

Is there any other way to set the properties of the interface in gbdus besides using org.freedesktop.DBus.Properties: g_dbus_connection_call_sync(conn, "org.example", …
zxc503
  • 11
  • 2
1
vote
1 answer

GLIB D-BUS Bluetooth - How to get the file descriptor?

I am using BLUEZ and GLIB/D-BUS to connect 2 Raspberry Pi (also a laptop and a Raspberry Pi). So far I could make fair progress. EDIT: on good advises from @ukBaz I am using a python client from my laptop, and my C code server on the Raspberry…
JScoobyCed
  • 10,203
  • 6
  • 34
  • 58
1
vote
1 answer

What is the right way to register RequestInput function to ConnMan?

I'm implementing C application which should be capable of connecting to external Wi-Fi protected access points using ConnMan via GDbus. So far I dig up that the Agent must be registered with RequestInput callback on "net.connman.Agent" interface in…
1
vote
1 answer

GDBus equivalent for dbus_connection_setup_with_g_main()

I am migrating code from dbus-glib to GDBus as the former is deprecated. I am not able to find an equivalent function for dbus_connection_setup_with_g_main() in…
D S
  • 109
  • 1
  • 3
1
vote
1 answer

g_dbus_proxy_new_for_bus_sync: assertion 'g_variant_is_object_path (object_path)' failed

The code following code should retrieve systemd-logind IdleSinceHint property exposed on DBus /* * Compile with: * gcc -Wall print_user_idle_time.c -o print_user_idle_time `pkg-config --libs gio-2.0 --cflags` */ #include static…
Germano Massullo
  • 2,572
  • 11
  • 40
  • 55
1
vote
1 answer

How can I get the g_dbus_connection_signal_subscribe function to tell me about pre-existing objects/interfaces?

The function g_dbus_connection_signal_subscribe works great for telling me when new DBus objects appear (or vanish) with InterfacesAdded signal (or InterfacesRemoved signal). But I need for to know about pre-existing objects/interfaces. I wrote the…
deltamind106
  • 638
  • 7
  • 19
1
vote
1 answer

How to send Dictionary datatype( a{ias} ) through gdbus?

I was trying to send different datatypes over dbus using gdbus. I am stuck at sending the following datatype : a{ias}. Does anyone send me a snippet or any ways to approach this problem?
deepan muthusamy
  • 321
  • 2
  • 14
1
vote
0 answers

context switches in dbus

Want to understand the context switches occurred while sending the dbus message?
user3500315
  • 61
  • 1
  • 4
1
vote
0 answers

Basic Bluez BLE client

Writing gdbus client for Bluez BLE (verison 5.48) Using gdbus-codegen tool to generate proxy and skeleton. XML Content has below details.
sam
  • 126
  • 2
1
vote
1 answer

How to link glib-2.0 library for c/c++ program to compile

I am new to using DBUS and would like to compile a program that uses glib-2.0. However I get an error. Here is my output from calling make: g++ -I. -Wall -std=c++11 main.c `pkg-config --cflags --libs glib-2.0 dbus-1 dbus-glib-1` -o main.o main.c:…
Kyle
  • 43
  • 1
  • 6
1
vote
1 answer

Pass an object as argument with gdbus utility

I want to call method RegisterAgent with gdbus but I can't find the proper syntax to do so. Introspecting on /org/bluez with this command $ gdbus introspect --system --dest org.bluez --object-path /org/bluez --recurse shows that method…
Bludzee
  • 2,733
  • 5
  • 38
  • 46
1
vote
0 answers

No notification with my program started with systemd

I develop a small program in Python3 to test the level of my battery and send a notification when it exceeds a threshold. This my code: #!/usr/bin/env python3 import configparser, signal from subprocess import run from sys import exit from time…
romain
  • 11
  • 1
1
vote
1 answer

QDBus Works with my Server as Client but not GDbus

I wrote a simple DBus server in Linux using Qt's QDBus. It is a very small amount of code and the core of it is here: InterfaceDescription::InterfaceDescription() { new ifadapter(this); // Cleans itself up qDebug() << "Creating"; …
PhilBot
  • 748
  • 18
  • 85
  • 173