2
votes
1answer
2k views

Ubuntu Software Center does not open - dbus error [closed]

Ubuntu Software Center does not open, I tried these instructions to fix it but they didn't work https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure When I run software-center ...
3
votes
0answers
177 views

Emit signal for GIO.DBusProxy in python?

I'm using GIO high level DBus API - DBusProxy object. I'd like to emit signal on this object (faking signal coming from remote interface). I do something like this: proxy.emit('g-signal', ...
2
votes
0answers
159 views

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 ...
3
votes
1answer
383 views

How do I detect when my system wakes up from suspend via DBus or similar in a python app?

In a background Python script I need to detect, when the system just woke up from suspend. What is a good way that does not rely on a root script but rather on python modules such as DBus? I'm new to ...
5
votes
2answers
114 views

How to work with processes?

I have seen similar questions here, but I didn't get my answer. Maybe it's because I am new to all this and just don't understand. I want my app to work mostly as an indicator. And if user would start ...
3
votes
2answers
436 views

How does a Python DBus session service know the user is logging out?

Say you have a DBus service on the session bus (the per-user bus). Your service might get started via an /etc/xdg/autostart/* file, or it might get started the first time some app tries to use your ...
7
votes
1answer
714 views

Root tasks using dbus and policykit

At some point my application needs to do administrative tasks like creating a file in /etc or running commands with root priveleges. I know just could do a Q&D: os.popen("pkexec foo bar") But ...
3
votes
1answer
583 views

Mount a Device Read Only using Udisk w/ Python

So I am writing a python script that is attempting to use UDisk to mount and unmount devices. I'm using something like this: disk_dev_func = dbus.Interface(self.device_obj, ...
2
votes
0answers
603 views

Programming with DBus using PyQt

I'm trying to write a desktop environment that supports the global menu Before I get started with my main task In PyQt I'm trying to get the dbus code to work with QtDBus as a proof of concept. Here's ...
2
votes
2answers
2k views

How do I run a script when a Bluetooth device connects?

I'd like to start my music player (Clementine) when my bluetooth headset connects to my computer. How do I detect the bluetooth device connecting so I can run a script to start the player?
3
votes
1answer
610 views

How to get a proxy for DBus object that is not well known?

I'm endeavouring to use dbus to react to a particular signal (user clicks on an appindicator menu on the unity top panel). From using dbus-monitor, I've found the relevant signal that I'd like to ...
1
vote
1answer
426 views

DBus nested dictionary in python

I have dictionary like this {key: { key1: '', key2: [{ key3: '' }] }} I have tried a{sv}, but I got error: **to message with signature a{sv}: <type ...
2
votes
0answers
141 views

How can I create an appmenu/DBusmenu using python? [duplicate]

Possible Duplicate: How to add support for the global menu to a python non-gtk, non-qt app? I want to add support for the indicator-appmenu to an application that is not written in one of ...
0
votes
1answer
384 views

DBUS Exception when using Quickly

Today I wanted to test Quickly. I normally used: quickly create ubuntu-application appname to create the files of my aplication. It takes a long time and after a time it says Dbus Exception. Here the ...
2
votes
1answer
366 views

Growl-type messages in Ubuntu

I'm working on a Python application that runs in the system tray and displays notifications to the user in the form of popups. It uses Growl on Macs and Growl for Windows on Windows. I've tried ...
13
votes
2answers
4k views

How to read dbus-monitor output?

i'm playing around with dbus-monitor to try and understand how dbus is working in Ubuntu environment. I have several questions in this regard: Could you please let me know how to read the following ...
4
votes
1answer
2k views

USB device changes using udev and D-Bus

I am trying to get a list of currently plugged in USB devices in Ubuntu 10.10 and monitor changes that happen, like devices being plugged in or out using udev and D-Bus. I'm fairly new to ...