I want to find the exact time where a media file is currently paused at (or playing) in a running Totem instance using D-Bus. To be precise, what I want is available from the Totem python console (if the plugin exists and is enabled) by the following command:
>>> print totem_object.props.current_time
732616
which I understand is milli...
I am attempting to send a signal out over the session message bus. I am able to call methods fine using d-feet dbus debugger with no problem. Unfortunately d-feet does not allow you to connect to signals to debug those. In replacement I am using dbus-monitor "type='signal'" to see if anything is sent. So far this works except for anythin...
How do I implement an async method in Python DBus? An Example below:
class LastfmApi(dbus.service.Object):
def __init__(self):
bus_name = dbus.service.BusName('fm.lastfm.api', bus=dbus.SessionBus())
dbus.service.Object.__init__(self, bus_name, '/')
@dbus.service.method('fm.last.api.account', out_signature="s")
...
I've got running sample python code which is fine in Ubuntu desktop:
import dbus, gobject
from dbus.mainloop.glib import DBusGMainLoop
from dbus.mainloop.glib import threads_init
import subprocess
from subprocess import call
gobject.threads_init()
threads_init()
dbus.mainloop.glib.DBusGMainLoop( set_as_default = True )
p = subprocess....
Is it possible to integrate asyncore with dbus through the same main loop?
Usually, DBus integration is done through glib main loop: is it possible to have either asyncore integrate this main loop or have dbus use asyncore's ?
...
How should I compile/ install WinDBus in my Windows Box?
...
I'm using stripped down as much as possible configuration of Qt but now I need to use the dbus and can't figure out what I need to include to be able to use it? There doesnt seem to be anything obvious to me using the qconfig tool. The errors I get at the moment when making are:
qdbus_symbols.cpp:53: error: expected initializer before ‘...
I've defined some protocol messages and every works on his own.
These messages now needs to be connected.
I think it will be all in a function called in the dameon mainloop or via DBus. The problems are:
- threading is not allowed
- the protocoll must be stateless
- callable from a DBusInterface
- also running on a daemon, that is the...
Is there a way to declare which signals are subscribed by a Python application over DBus?
In other words, is there a way to advertise through the "Introspectable" interface which signals are subscribed to. I use "D-Feet D-Bus debugger".
E.g. Application subscribes to signal X (using the add_signal_receiver method on a bus object).
...
I am using dbus to get the current playing song from Songbird Media Player & Metadata is also taken from dbus object.
The line where error comes is:-
audio_file = MP3(current_playing_track['location'], ID3=ID3)
The error is:-
Traceback (most recent call last):
File "./last.py", line 42, in <module>
audio_file = MP3(current_pl...
I've been struggling to get the Browser Dbus Binding working for Webkit/GTK (http://gitorious.org/webkitgtk/stable) port. I have been able to successfully compile the Webkit/GTK port as well as the DBus binding library on my Ubuntu Lucid Beta. I also installed the DBus binding library at the standard location /usr/local/lib. But now when...
Is there a way using Python to simulate the presence of an active network connection using dbus? If I call getstate() on the dbus, I'm able to get the current network state. I want to set the current state to 4 (Connection Present). This is because Network Manager is not able to connect using my modem and I use other tools to connect. Pi...
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.
...
I'm pretty new to the whole DBus stuff so excuse me if this is trivial, but I was wondering whether, using DBus, it is possible to set the audio volume from the command line.
...
I write a python class which makes asynchronous method calls using D-Bus. When my reply_handler is called, it stores data in list. This list can be used by another class methods at the same time. Is it safe or I can use only synchronized data structures like Queue class?
...
I have an little script which logs users that login to my Pidgin/MSN account
#!/usr/bin/env python
def log_names(buddy):
name = str(purple.PurpleBuddyGetName(buddy))
account = purple.PurpleAccountGetUsername(purple.PurpleBuddyGetAccount(buddy))
if account == u'[email protected]':
try: log[name] += 1
...
Hi all,
I am writing an elisp file to integrate GNU Emacs with Zeitgeist over dbus. Because of the lack of good documentation on dbus in emacs and my lack of experience with advanced elisp, I am coming up with the following error in my method zeitgeist-send:
Wrong type argument: D-Bus, (zeitgeist-event-timestamp)
I have tried cor...
What are some good practices to obtain better time performance in applications that heavily utilize DBus?
Here are a few that our team has learned through the school of hard knocks:
Try to combine data entities together into a single, large structure/object to send over DBus IPC.
Try to have all DBus traffic come into a single proxy a...
I have a Qt/C++ application that exposes some custom C++ classes via DBus methods (by registering them as MetaTypes, and using annotations in the xml), and I want my PyQt program to consume these methods.
The problem I see is that the exposed types are C++ classes, not python, so how can I make python aware of these classes?
...
Here is my problem:
I send this message on my DBus session bus :
signal sender=:1.3 -> dest=(null destination) path=/; interface=a.a.a; member=a
here is my code :
dbus_interface.h :
#ifndef DBUS_INTERFACE_H
#define DBUS_INTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QString>
#include <QtDBus/QtDBus>
class dbus_interface :...