Questions tagged [dbus]

D-Bus is a message bus system, which allows client programs to call procedures on a service - basically, the machine-local equivalent to XML-RPC and SOAP.

D-Bus is a message bus system, designed to provide ways for programs to communicate with each other. D-Bus uses remote procedures to allow a client to call methods on a "service", and is conceptually similar to XML-RPC and SOAP. D-Bus, however, is designed for use in applications running on a single system. The FAQ offers a comparison to other well known IPC systems, as well as other general questions.

D-Bus is, in addition to an implementation, a specification - the document itself is freely available. In addition, an Introduction To D-Bus gives a high-level overview of how D-Bus is designed.

D-Bus, although used on POSIX systems (usually Linux and the *BSDs), has been ported to Windows and has been officially added to the specification.

D-Bus related questions will typically be how do I accomplish [X] in D-Bus - D-Bus is technical enough that most any question relating to it will be on topic.

1376 questions
0
votes
1 answer

Java best approach (Threads, DBus and HttpRequest)

I have this situation in Java: On internal modules called I. A big module Z that receives messages by DBus from I. This big module Z communicate with a external server E (for every message received by Dbus). By DBus architecture, every time it is…
joao
  • 97
  • 1
  • 10
0
votes
1 answer

Compilation error dbus-ping-pong

I have downloaded files from http://cgit.collabora.com/git/user/alban/dbus-ping-pong.git/tree/ I am trying to compile it using the command gcc pkg-config --libs --cflags dbus-1 dbus-glib-1-2 glib-2.0 -o dbus-ping-pong dbus-ping-pong.c But i am…
123456
  • 81
  • 1
  • 8
-1
votes
1 answer

Wierd Dbus Issue - dbus_connection_send fail

I am a beginner to DBus and wrote one sample application using dbus but i am facing a weird problem. My app is running fine on guest os as Ubuntu (On virtual box with windows host ) but the same app is not working on standalone Ubuntu system (also…
manojjk
  • 1
  • 1
-1
votes
0 answers

D-Bus: type-safe usage of signed 8-bit integers

According to the D-Bus specification, there are signed and unsigned types for 16-, 32- and 64-bit integers. However, for 8-bit integers, only an unsigned type ('y') is defined. Background: I am thinking about a C++ variadic template, which shall map…
-1
votes
1 answer

How to get the open windows of Nemo file manager by Dbus command

As you can see in the image bellow there are (org.Nemo) : /org/Nemo/window/1 /org/Nemo/window/2 /org/Nemo/window/3 /org/Nemo/window/4 I have four windows open and it shows that. Each window has a GetMachineID command. How can I find how many…
Ahmad Ismail
  • 11,636
  • 6
  • 52
  • 87
-1
votes
1 answer

DBus, C - send/receive binary data

Looking for a simple tutorial. I need to send and receive binary data through DBus (pure C). All tutorial I found are using DBUS_TYPE_STRING, but I have a binary data blocks. Thinking about usage like this: void write_msg(DbusConnection *conn, void…
White Owl
  • 318
  • 1
  • 8
-1
votes
1 answer

Receiving property changes from DBus with zbus

I'm trying to listen to changes of UPower device. From terminal this easily done by $ dbus-monitor --system …
Flowneee
  • 234
  • 1
  • 5
  • 15
-1
votes
1 answer

Python keyword pass causing syntax errors, is this a bug in the language?

I was working with this KDE widget and was having hard time trying to access it with python, I figured out with some help that I was trying to do it right originally and if I patch the 2 files below in the widget to change the name from pass to say…
-1
votes
1 answer

PyQt5: How to connect to two D-Bus services at once?

I am trying to connect to two separate D-Bus services, but I can only connect to one. The second connection just connects to the first service, despite reporting (via provider2API.service()) that it is connected to the second service. The following…
DDR
  • 392
  • 1
  • 4
  • 14
-1
votes
1 answer

Golang API to WPA Supplicant

I need connect headless IoT device (Raspberry Pi) to Wi-Fi Network. I have custom Linux built using YoctoProject. I don't have connman or Network Manager installed. There is only WPA Supplicant. My services are written in Golang. Call wpa_cli is…
Mark Berner
  • 119
  • 1
  • 6
-1
votes
1 answer

Implenting Get and GetAll with libdbus-1

Given libdbus-1 which is non-negotiable, I'd like to implement Get and GetAll for DBus properties. I don't really see any examples for this. Do I just have to match the method with dbus_message_is_method_call() and respond accordingly? Or is there a…
-1
votes
1 answer

dbus_connection_send_with_reply timeout

When calling dbus_connection_send_with_reply through the D-Bus C API in Linux, I pass in a timeout of 1000ms, but the timeout never occurs when the receiving application doesn't reply. If the receiving application does send a reply then this is…
User55412
  • 882
  • 2
  • 10
  • 27
-1
votes
2 answers

Send a message using D-Bus

I want to send a message using D-Bus but I get an error: process 30860: arguments to dbus_message_new_signal() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file ../../../dbus/dbus-message.c line 1456. This is normally a bug…
Marzanna
  • 143
  • 1
  • 3
  • 8
-1
votes
1 answer

Best way to make sure udisksd is running

I'm writing a program for a Raspberry Pi that needs to be notified when the user inserts a USB drive. I'm using Qt's D-Bus support to listen to InterfacesAdded from org.freedesktop.UDisks2, which works fine on my x86 Linux desktop. Here's my code…
-1
votes
1 answer

How to achieve realtime usb storage detection with Ruby on Linux?

I am thinking ruby-dbus could be the right solution, but I cannot seem to find any examples of how to detect in realtime, whenever a storage device is connected to the Linux machine. Anyone have such an example?
Roman Gaufman
  • 1,104
  • 1
  • 13
  • 17
1 2 3
91
92