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

How export methods with dbus in a extended class in python, inherited methods?

I have a top class and classes that extend the top class, but almost all methods from the child classes are from the top class (using inheritance, without reimplementation), so I don't have the methods in the child classes, how could I export them…
Juliao
  • 127
  • 3
  • 12
0
votes
1 answer

What is the use of dbus_g_object_register_marshaller function

I am familiar to DBus and its Qt Binding. But I am very new to glib and related stuff. When I am going through the code of some project, I came across "dbus_g_object_register_marshaller" function. Can you please explain me about this briefly in…
snr
  • 599
  • 2
  • 6
  • 10
0
votes
1 answer

Pass a lambda expression as callable to dbus.Interface.connect_to_signal

I have a class, 'Listener', that connects callbacks to D-Bus signals. The callbacks and signal names are provided by another class, 'Client'. If the callbacks provided by Client are passed to connect_to_signal (on dbus.Interface) as the callbacks to…
JoGr
  • 1,457
  • 11
  • 22
0
votes
0 answers

DBus Rhythmbox Gobject set Properties

im having trouble with Gobject Introspection in Python. Im trying to access Rhythmbox via DBUS and i can access the methods inside of org.mpris.MediaPlayer2.Player, but i am trying to set values for the attributes of org.mpris.MediaPlayer2.Player,…
Small Zane
  • 33
  • 4
0
votes
1 answer

Python threading question - returning control to parent

Basically, I have a python program which listens for DeviceAdded DBus events (e.g. when someone plugs in a USB drive), and when an event occurs, I want to create a thread which collects metadata on that newly connected device. However, I want to do…
ZZ
0
votes
1 answer

Python Access Pidgin Data Structure by Dbus

I recentely started to program in Python and making a script/plugin for Pidgin,i need to access PurpleConversationUiOps and use the has_focus field,based in some examples in documentation of Pidgin i made this: #!/usr/bin/env python import…
Mr Alles
  • 11
  • 3
0
votes
1 answer

Error building Maliit with glib and dbus dbus_g_value_build_g_variant

I am trying to build Maliit ( https://wiki.maliit.org/Documentation/Installing ) on Ubuntu 10.04 32-bit. I have an Ubuntu 12.04 machine as well and building Maliit works just fine out of the box on the newer Ubuntu but I need to have it build on…
PhilBot
  • 748
  • 18
  • 85
  • 173
0
votes
3 answers

Play a musiclist with d-bus in MediaPlayer

This python program shall play a playlist from Mediapplayer. When one song ends or after typing on the keyboard the playlist will play the next song. The input is: #!/usr/bin/python #-*-coding:ascii-*- import dbus import gobject from…
Studie
  • 799
  • 2
  • 12
  • 20
0
votes
1 answer

Understanding HAL DBus Events?

I'm watching HAL events on DBus, observing when the AC Adapter is removed / plugged-in. Via dbus-montior, the two events appear the exact same: unplug event signal sender=:1.85 -> dest=(null destination) serial=3698…
Pat
  • 1,882
  • 2
  • 15
  • 22
0
votes
1 answer

Process QDBusPendingCallWatcher results in PyQt4?

I'd like to make a non-blocking call to a function in a remote D-Bus service using PyQt4.QtDBus. Adapting from Qt's C++ documentation, I came up with the following test program: from PyQt4 import QtCore, QtDBus class…
evadeflow
  • 4,704
  • 38
  • 51
0
votes
2 answers

Is it possible to compile NDesk.DBus and NDesk.DBus.GLib for windows?

I used cygwin to compile it and I get the following error. {"Unable to load DLL 'libc': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"} when the following method is called. [DllImport ("libc",…
scott
  • 2,991
  • 5
  • 36
  • 47
0
votes
2 answers

How do you pass information from an 8 byte array into variable bit size data containers?

I have an 8 byte message where the differing chunks of the message are mapped to datums of different types (int, bool, etc.), and they vary in bit sizes (an int value is 12 bits in the message, etc.). I want to pass only the bits a datum is…
messenger
  • 614
  • 5
  • 12
0
votes
2 answers

python: simple dbus example- os.fork() in service routine?

I am trying to write dbus server where I want to run some external shell program (grep here) to do the job. when I do: prompt$ server.py then: prompt$ client.py # works fine, ie. runs grep command in child process. prompt$ client.py # ..., but…
mat
  • 95
  • 8
0
votes
1 answer

Failed to connect dbus signal based on DBusGProxy

I am working on a small project .My OS is Linux (Ubuntu 11.04). I want to connect to the DBus Daemon signal NameOwnerChanged in order to be indicated which app is shutdown or startup.I wrote a small program to do this. It failed though. I used glib…
wang
  • 53
  • 5
0
votes
1 answer

Qt Bluetooth with Linux

I'm trying to setup a bluetooth server for one device with Qt and can't figure out how to use QDbus and bluez. The device is going to send strings. The two are already paired.
Lara
  • 117
  • 1
  • 9