D-BUS is a messaging system used by applications to talk to each other.

learn more… | top users | synonyms

26
votes
5answers
14k views

Tool for viewing available DBUS messages I can send to an application

Is there a graphical tool or maybe a command-line one that lists all the messages and parameters/arguments that I can send to a DBUS-enabled program?? I really want to try scripting some DBUS things ...
26
votes
7answers
24k views

GDBus.Error when trying to enable second screen

I connected an external screen to my laptop, but my desktop didn't automagically extend to it, as it used to do about a year ago (older version of Ubuntu). I went to the display settings. The screen ...
19
votes
1answer
715 views

What actions does Ubuntu trigger when battery is low?

When the battery is low, the screen gets dimmed after a few seconds already. This appears to be some special power-saving mode, and might be related to the time in ...
17
votes
2answers
8k 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 ...
15
votes
1answer
19k views

Couldn't connect to accessibility bus

When using ssh with X11 forwarding, I am getting various errors and warnings when running gui applications. As an example, any time I am running gitg, I get the following warning: ** (gitg:15904): ...
14
votes
7answers
71k views

GConf Error: No D-BUS daemon running?! How to reinstall or fix?

After installing Konquerer and restarting my laptop i got the following error while trying to open, edit or access files as root from within Terminal (which is existencial for me). ...
11
votes
1answer
8k views

glib.GError: No D-BUS daemon running

When trying to run meld on Ubuntu Desktop 13.04, I get the following error: $ meld (meld:1509): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Failed to connect to socket ...
11
votes
5answers
20k views

“JACK server could not be started” when using Qjackctl

I have a problem when I try to connect my guitar to my computer, via line input. Audacity works well, and I can record what I play on my guitar (selecting from Preferences from where to record to ...
11
votes
3answers
7k 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?
11
votes
2answers
2k views

Reboot without sudoer privileges?

I've been trying to get my ubuntu restart without having to edit the sudoers. This has been possible before (in lucid I think) using a dbus command: dbus-send –system –print-reply ...
9
votes
1answer
2k views

How to remotely control Banshee via SSH?

Banshee has the ability to control its main window from the command line using commands like $ banshee --next However when running these commands over ssh as the same user it simply tries to launch ...
8
votes
3answers
1k views

How do I setup a timer based notification?

Being a compulsive computer user, I am in front of it all day. I sometimes lose track of time when I am working on my comp. I need a notification service to alert me of the current time, either by a ...
8
votes
2answers
7k views

How can I configure dbus to allow ssh-user to suspend server?

I try to suspend my server using dbus and UPower. The server runs Ubuntu LucidLynx 64bit. While everything works fine if I am sitting directly at the machine, it won't work via ssh. If I connect to ...
8
votes
1answer
1k views

D-Bus : Where to get started?

Many every day actions in Ubuntu can be done easily from terminal using dbus. The main advantage is it can be done exactly the GUI does, using a one liner, such as change brightness, copy file, etc. ...
8
votes
2answers
7k views

“No object for D-Bus interface” when mounting with Nautilus

I have an internal HDD that gives this error when I try to mount either of its two partitions in Nautilus, while my main HDD works fine. When I use Disks to mount it works but unmounting in Nautilus ...
7
votes
1answer
4k views

How do I run a script on a dbus signal?

Is it possible to run a script on an arbitrary dbus signal? Something like Upstart that runs as an unprivileged user and doesn't require root perms to modify? I ask because I've already written a ...
7
votes
1answer
1k 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 ...
6
votes
1answer
323 views

How do I programmatically detect presence changes in the messaging menu?

Is there a way to subscribe to messaging menu events? Specifically, I'm looking for a signal (over DBus?) that is fired when the online presence status changes in the messaging menu
6
votes
1answer
10k views

What does udisks-daemon do and do I need it?

I was looking into htop and the only process having > 0.0% CPU (apart from htop itself) was /usr/lib/udisks/udisks-daemon. So the questions are: What is this service? Do I need it? (Or when do I ...
6
votes
1answer
95 views

What is the action performed by the “Quit” option in application launcher icon?

TL;DR what command/dbus method /action is being called by the Quit action in each launcher icon ? I've been reading the source for Unity 7 over the last few days and found a few lines of code that ...
6
votes
1answer
1k views

What is the correct way to use g_signal_connect() in C++ for dynamic unity quicklists?

I want to make my application use dynamic unity quicklists. For building my application I am using C++ and the QtCreator IDE. When a menu action is triggered I want to be able to have access to a ...
6
votes
0answers
298 views

Why do I need sudo to reboot from the command line? [duplicate]

When I enter reboot on the command line, I get: reboot: Need to be root and asked the root / sudo password. When I reboot via the gui I can do that without my sudo password. Why is that? What's ...
5
votes
1answer
2k views

.dbus folder in home folder belongs root

I have a folder ~/.dbus in my homefolder that is only read and writeable by root: drwx------ 3 root root 4096 Feb 17 17:30 . drwx------ 2 root root 4096 Feb 17 17:30 session-bus Is this the ...
5
votes
2answers
991 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
133 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 ...
4
votes
2answers
793 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 ...
4
votes
2answers
4k views

How do I get a list of all of the available dbus properties?

How do I get a list of all of the available dbus properties for example org.freedesktop.DBus.GLib.Const? Especially to control window managers, like xfwm. And how would I receive the global menu in ...
4
votes
5answers
5k views

How do I suspend over ssh?

I guess this question is pretty much the same as How to configure dbus to allow ssh-user to suspend server?; except I wanted to formulate it better. Assume I have an Ubuntu server running nonstop, ...
4
votes
1answer
4k 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 ...
4
votes
3answers
1k views

My ubuntuone is broken, what is the problem?

I am on 10.10 and u1sdtool seems to be completely broken. I reinstalled it, no change. I can add my PC to the account, but it is added twice(!) every time I tried. So I have my netbook and two times ...
4
votes
1answer
85 views

How can I use DBus to create a client and server without dbus configuration files on recent releases of Ubuntu?

I want to use a bridge between a flask webapp and python subprocesses under python3. I couldn't find a copy paste-able example of a service instantiated without config files for the same. The ...
4
votes
1answer
819 views

How can I add a custom item to the Sound Indicator (and make it clickable more than once)?

The original question One of the strength of Unity are the various standardized indicators. I want to customize the sound indicator with an additional menu entry that runs a small shell script. ...
4
votes
1answer
90 views

Execute a script every time a particular application makes a notification

I searched quiet a bit but all the articles and answers only tell you how to create your own notification. What I want to do is to keep track of all the notifications made by all the applications, and ...
4
votes
2answers
4k views

Startup Disk Creator fails to erase disk

Before extracting an ISO image onto a USB device using Startup Disk Creator, when I try to erase the USB device using the same software, I always get the following error: I have tried to erase ...
4
votes
2answers
737 views

Access dbus session bus from upstart script

I was wandering if it is possible to access the DBUS session bus from within an upstart script. The background is this: I am running an upstart task in user mode and replaced the Upstart.conf dbus ...
4
votes
1answer
322 views

Spotify metadata through DBUS with track_notifications disabled

Situation: I've got Ubuntu 14.04, Awesome WM and Spotify Linux Client Version: 0.9.11.27 Custom preference setting: ui.track_notifications_enabled=false in ...
4
votes
1answer
3k 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 ...
4
votes
1answer
281 views

About dbus-daemon's activation parameter

I'm using Ubuntu12.04 LTS. I saw following line in /etc/init.d/dbus.conf. exec dbus-daemon --system --fork --activation=upstart And I saw the man page for dbus-daemon, and then found the ...
4
votes
0answers
726 views

Is Bluez (bluetoothd) not sending DBUS method_call SelectConfiguration upon Connection? If so, how do I catch it?

UPDATE : not solved yet, but part of a solution. See below. I am attempting to connect my iPod or other smart device to my laptop (Kubuntu 13.10) via bluetooth and stream a2dp-encoded music to a ...
3
votes
3answers
708 views

Error when trying to get movies off my Camera

How do I retrieve movies and audio files from my Canon PowerShot S5 IS camera? Shotwell only sees the pictures. Mounting the camera via "Places > Canon Digital Camera" and then clicking twice on the ...
3
votes
3answers
14k views

What program starts dbus-daemon?

What program starts the per user session dbus-daemon process in GNOME 2 and GNOME 3 (presumably via dbus-launch)? I would like to know because I would like to add a directory to the list of ...
3
votes
2answers
4k views

Configuration of the Network Manager via DBus: how to set the ad hoc mode

I have an hard nut to crack: a nice bottle of italian Chianti wine to the solver! :) To automatically configure WiFi, I first have to kill the Network Manager and than activate the WiFi via the ...
3
votes
1answer
810 views

Not enough swap space to hibernate?

It seems that I have enough though; maybe it's not automatic swap mounting? Any help on getting hibernate working is appreciated.
3
votes
2answers
2k views

symlink for dbus headers

Source code for something that won't compile has the line #include <dbus/dbus.h> but in real life that header file is in /usr/include/dbus-1.0/ Similar situation exists for the dbus-c++ ...
3
votes
1answer
74 views

Unity Desktop incomplete when launching manually using 'startx $(which unity)'

This is a follow-up question to 15.10: 'startx $(which unity)' fails when booting to console. I finally managed to load the Unity Desktop after having booted into text-mode. But the desktop I ...
3
votes
2answers
2k views

Davmail Java terminates with SIGSEGV after 11.10 Upgrade

One of my favorite programs, davmail, crashes now after upgrading to 11.10. Just checking if there is a quick fix before I submit a bug report. Thanks. $ davmail # # A fatal error has been detected ...
3
votes
2answers
419 views

Missing REQUIRED dependency: python3-dbus [how to install python dependencies]

I am trying to update HPLIP 3.14.3 to 3.15 but is not available through the software centre thus I am installing it from here. However I am having difficulties in the automatic installation due to ...
3
votes
2answers
928 views

Gnome Shell JS - Listen for DBus signal on an interface for any path

I'm trying to write an extension that listens for a DBus signal, but I don't know the path ahead of time. Actually, there are multiple paths (unique for each application that implements the ...
3
votes
3answers
7k views

“could not connect to session bus” on login

Just got a new Ubuntu 11.10 install working. Updated my software and rebooted, but now when I try to log in, I'm greeted with the following error: could not connect to session bus: //bin/dbus-launch ...
3
votes
1answer
284 views

I can't open software updater and unity tweak tool on Ubuntu14.04

I have a notification nearly every time I try to update. That note 'An error occurred while checking for updates => [TR Language] Güncellemeler denetlenirken bir sorun oluştu.' I can't open software ...