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

what dbus performance issue could prevent it from embedded system?

From my reading dbus performance should be twice slower than other messaging ipc mechanisms due to existence of a daemon. In the discussion of the so question which Linux IPC technique to use someones mention performance issues. Do you see…
minghua
  • 5,981
  • 6
  • 45
  • 71
10
votes
1 answer

DBus SystemBus policies

I wrote a program that runs as session service through dbus. I wanted to make it run as system service (creating a dbus.SystemBus bus name) if executed by root (uid 0). I am trying to run for dbus.SystemBus what I currently run for dbus.SessionBus…
user1476859
  • 101
  • 1
  • 1
  • 3
9
votes
1 answer

Logind and gdbus: Not getting notifications

I use DBus to communicate with logind to get informations about active sessions, etc. I have created the code using gdbus-codegen. I can get informations by using the call and get methods, but I do not receive notifications (I have a g_main_loop…
Nidhoegger
  • 4,973
  • 4
  • 36
  • 81
9
votes
1 answer

How do I connect dbus and policykit to my function in python?

I am making a python application that has a method needing root privileges. From https://www.freedesktop.org/software/polkit/docs/0.105/polkit-apps.html, I found Example 2. Accessing the Authority via D-Bus which is the python version of the code…
answerSeeker
  • 2,692
  • 4
  • 38
  • 76
9
votes
1 answer

How to use Qt-Dbus bindings without blocking the main thread

My goal is to create a library using the Qt's DBus bindings. I tried to create a Qt application without launching the QEventLoop (provided by the QCoreApplication class) in the main thread. Here is a minimalistic application sample, working fine…
ben-du_a
  • 103
  • 1
  • 5
9
votes
2 answers

what is dbus daemon and why vlc needs it

I have cross-compiled VLC (version 2.1.2) media player using buildroot for an arm board. I have connected the board to my linux PC using serial cable. When I try to run the player using "vlc" command in minicom, which is located in /usr/bin of my…
Hugh
  • 141
  • 1
  • 1
  • 8
8
votes
3 answers

DBus interface properties

How do I get the list of available DBus interface properties? I am writing a script that would be tracking specific type of usb devices connections. A way to distinguish the connections to be tracked from all usb connections I guess is to check the…
Alex
  • 43,191
  • 44
  • 96
  • 127
8
votes
1 answer

DBus .service file missing

I am building custom dbus service for my own demands and want it to start automatically when someone need it. For that purpose I've created .service file like this [D-Bus…
pss
  • 736
  • 3
  • 7
  • 14
8
votes
1 answer

Who called my DBus API in Linux system

The scenario is like this: In a Linux based handheld device I have a C app which has dbus APIs ready to be called by 3rd party apps. The DBus APIs are called during booting time. Is there any system API I can use to in my functions to print the…
tao
  • 251
  • 3
  • 13
8
votes
2 answers

Git + libsecret throws "Cannot autolaunch D-Bus without X11 $DISPLAY"

I've installed Git and libsecret on an CentOS 7 Server. I used git-credentials-store to store my credentials in clear text on the server. Now I wanna use libsecret but unfortunately I'm getting D-Bus errors, if I configure git-credential-libsecret…
Paul1896
  • 85
  • 1
  • 1
  • 4
8
votes
1 answer

How to install dbus-python on macOS?

In the first step: configure, I got the following error: ... ... checking for DBUS... no configure: error: Package requirements (dbus-1 >= 1.6) were not met: No package 'dbus-1' found Consider adjusting the PKG_CONFIG_PATH environment variable if…
alexBai
  • 121
  • 2
  • 6
8
votes
2 answers

LEAdvertisingManager1 missing from DBus.ObjectManager.GetManagedObjects

I'm running tests with my home computer running Ubuntu and Python 2.7 in the hopes of having Raspberry Pi 3 advertise using BLE with custom services and characteristics. I've installed Bluez Version 5.42 (using the recommended method) on both…
Bryan McGrane
  • 498
  • 6
  • 14
8
votes
2 answers

How to emit dbus signal from command line

Is there a way to emit dbus signal from command line using dbus-send or something else ?
deimus
  • 9,565
  • 12
  • 63
  • 107
8
votes
2 answers

Cannot disable systemd service

I've been using the dbus API from systemd and I've been enabling services with the EnableUnitFiles() function as detailed here http://www.freedesktop.org/wiki/Software/systemd/dbus/ However, when I try to disable the same service with the command…
Andy Kim
  • 83
  • 1
  • 3
8
votes
2 answers

D-Bus how to create and send a Dict?

I have a process which exposes a method to DBus with one of the arguments taking the following type signature a{sv}: Dict of {String, Variant} The libDBus documentation for dbus_message_append_args fails to provide adequate reference for this.…
user3467349
  • 3,043
  • 4
  • 34
  • 61