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
32
votes
1 answer

Async wait on file descriptor using Boost Asio

I'm trying to integrate D-Bus with my boost::asio application. D-Bus has an API that enumerates a set of Unix file descriptors (mainly sockets but could also be FIFOs) to be watched. When those descriptors have something to be read I should inform…
Edu Felipe
  • 10,197
  • 13
  • 44
  • 41
29
votes
3 answers

D-Bus equivalent for Windows

Anyone know of a Linux/D-Bus sort of mechanism for Windows? Thanks
sharkin
  • 12,162
  • 24
  • 86
  • 122
29
votes
4 answers

D-Bus: is there such a thing as a "D-Bus sniffer"?

Is there such a thing as a "D-Bus sniffer" ? I would like to "sniff" all (or part) of the messages transiting on D-Bus.
jldupont
  • 93,734
  • 56
  • 203
  • 318
25
votes
1 answer

Simple C or C++ API for controlling systemd services

Goal I'd like to write C/C++ applications and provide an API for them to communicate directly with systemd-managed services. Effectively, I'd like my applications to be able to do the equivalent of systemctl start service_name@unit_number.service…
Cloud
  • 18,753
  • 15
  • 79
  • 153
25
votes
4 answers

How to launch a KDE konsole with multiple tabs running various progs?

I know how to start a Konsole with one executable running in it, and leave the Konsole open after the program ends. I can do this using a .desktop file and change some options in it. But I would like one step further, to launch a KDE konsole with…
dargaud
  • 2,431
  • 2
  • 26
  • 39
25
votes
7 answers

Install Python-Dbus in virtualenv

I am running an application in a virtual environment that needs access to DBus (to interact with the Network Manager, mainly). I tried to install Dbus-Python with easyinstall and pip, but both fail. When I try to do…
Savir
  • 17,568
  • 15
  • 82
  • 136
24
votes
8 answers

Running notify-send as root

I am trying to get a notification when pluging in a USB device, for this I use a udev rule to track the moment it is pluged and from there I launch a script. The idea on the script was to use what it is explained in the link. but when trying…
Sxubach
  • 364
  • 1
  • 2
  • 13
24
votes
3 answers

Connecting to dbus over tcp

I wrote a simple python program to play and pause banshee music player. While its working on my own machine, I have trouble doing it to a remote computer, connected to the same router (LAN). I edited the session.conf of the remote machine, to add…
Gautam
  • 475
  • 1
  • 3
  • 8
23
votes
4 answers

Is there an equivalent to DBus on OSX?

Is there an equivalent to Linux DBus on OSX? I mean, is there a "message bus" available by default on OSX? Disclaimer: OSX newbie here.
jldupont
  • 93,734
  • 56
  • 203
  • 318
22
votes
3 answers

error: longjmp causes uninitialized stack frame

I have a server application that creates a Bus on the dbus and after some minutes of running I got an error that I have never seen before. Did you have an idea whats wrong? *** longjmp causes uninitialized stack frame ***:…
Tobi Weißhaar
  • 1,617
  • 6
  • 26
  • 35
22
votes
4 answers

D-Bus tutorial in C to communicate with wpa_supplicant

I'm trying to write some code to communicate with wpa_supplicant using DBUS. As I'm working in an embedded system (ARM), I'd like to avoid the use of Python or the GLib. I'm wondering if I'm stupid because I really have the feeling that there is no…
morandg
  • 1,066
  • 3
  • 14
  • 30
22
votes
3 answers

dbus_bus_request_name (): Connections are not allowed to own the service

I built a root filesystem on arm. It should run dbus-daemon and avahi-daemon, but when I try to run avahi-daemon $ dbus-daemon --system $ avahi-daemon I get this message: Found user 'avahi' (UID 4) and group 'avahi' (GID 4). Successfully dropped…
Mandy
  • 405
  • 2
  • 6
  • 14
22
votes
8 answers

How solve ImportError: No module named 'dbus'?

I have installed anaconda4 on my ubuntu and I have these modules on my Python: dbus-python (1.2.4) gi (1.2) pydbus (0.2) QtAwesome (0.3.2) qtconsole (4.2.0) QtPy (1.0) sip (4.18) I tried installing dbus-python (1.2.4) and pydbus (0.2), however,…
B nM
  • 369
  • 1
  • 5
  • 17
22
votes
2 answers

Emacs connects to system bus, but not to the session one

The system bus works fine (dbus-init-bus :system) returns nil, as it should. However, connection to the session bus (dbus-init-bus :session) raises (dbus-error "No connection to bus" :session) qdbus in the command line works just fine with both…
Reactormonk
  • 21,472
  • 14
  • 74
  • 123
21
votes
2 answers

How to define a d-bus activated systemd service?

Does anyone have an example, or a link to an example of how to define a systemd .service which is activated by d-bus? My understanding is that if I create a test.service file here: /usr/share/dbus-1/services/test.service With the following…
RandomUser
  • 4,140
  • 17
  • 58
  • 94
1
2 3
91 92