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
2 answers

Find D-Bus unique address using gdbus

I'm trying to find out the best way to acquire the unique D-Bus address of an object in the D-Bus system bus using the GDBus library on Linux. Here are version numbers of the libraries I am using: # ls /usr/lib |grep -e dbus -e glib -e…
zeus_masta_funk
  • 1,388
  • 2
  • 11
  • 34
1
vote
2 answers

How to send a two dimensional array over gdbus?

I'm trying to send a two dimendional array of strings over dbus.( I'm using the gdbus api, with gdbus-codegen). I have defined the dbus interface as follows.
nilanjanaLodh
  • 303
  • 4
  • 11
1
vote
1 answer

how to get "properties" through gdbus

Can anybody tell me where I can find documentation on how to use gdbus call to get information from the system? I am following APIs here:…
Arn
  • 600
  • 1
  • 6
  • 22
1
vote
0 answers

error setting Interval property of BLE thermometer

I'm trying to set the Interval property of a BLE thermometer, and running into some issues. I've tested setting properties such as the WimaxEnabled property in NetworkManager: $ gdbus call --system --dest org.freedesktop.NetworkManager…
RooterTooter
  • 384
  • 1
  • 6
1
vote
1 answer

gdbus type naming for structs

With gdbus codegen, a struct/object is defined as a complete type in the xml like below However, if the same struct is used at multiple places, repeating the type…
abdus_salam
  • 738
  • 2
  • 7
  • 19
1
vote
0 answers

Using GDBus with code that uses fork()

I've been asked to create a dbus interface to a program that uses SocketCAN to communicate to a set of control units on a car (that's just background info and not relevant to the question). The original concept was to use a listener interface that…
tiktok
  • 456
  • 3
  • 13
1
vote
1 answer

multiple complete types in GDBus introspection xml

How can I pass give multiple complete types in gdbus introspection xml. Example,
Akhil V Suku
  • 870
  • 2
  • 13
  • 34
1
vote
1 answer

Add tuple in gdbus introspection xml

How can I receive multiple int32 values, ie when I am receiving one value i need to specify it as type=i , but…
user4565896
1
vote
1 answer

How do I plug the memory leak when usign gdbus-codegen generated code?

I have an interface described in DBus Introspection XML format:
anorm
  • 2,255
  • 1
  • 19
  • 38
1
vote
2 answers

gdbus: is it safe to free signal argument right after signal emission

I created simple dbus service that emits signal with dynamically allocated data argument: file_name = g_strdup("myfile"); ... ... g_signal_emit_by_name (object, "mysignal", file_name); g_free(file_name); In this case signal listeners may receive…
user1780084
  • 147
  • 2
  • 8
0
votes
0 answers

Gdbus wayland: get size and position of a window

I cannot find any examples on how to use gdbus to get the position and rect size of a window. I am able to get the window's pid using code from other stackoverflow questions, but there is no way to get that window's current position relative to the…
rosewater
  • 604
  • 2
  • 8
  • 22
0
votes
1 answer

How to run CopyFile, CopyURIs, MoveURIs methods of Nemo File Manager

Under org.Nemo.FileOperations there are methods named: CopyFile, CopyURIs, MoveURIs. How can I use these methods (i am looking for cli commands which use dbus-send or any equivalent)?
Ahmad Ismail
  • 11,636
  • 6
  • 52
  • 87
0
votes
0 answers

Listening TCP Port for DBus is not working

My aim is to listen a tcp port for dbus connection from a remote machine. I read the dbus related documents. Offical documents say don't change the default configurations under /usr/share/dbus-1. Instead of changing session.conf, i added a config…
şahin
  • 19
  • 3
0
votes
0 answers

Running background task GDBus

I am developing an application where I want to set network changes detector. In order to achieve that I have tried to create connection to GDBus in background thread, but i cant make it work. Could someone tell me what I am doing wrong? This is my…
RuLoViC
  • 825
  • 7
  • 23
0
votes
1 answer

How to pass 'as' argument to gdbus?

This is a part of xml.
S-K
  • 87
  • 5