Skip to main content

Questions tagged [dbus]

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

Filter by
Sorted by
Tagged with
82 votes
2 answers
4k views

How do I write a Unity system indicator in Python?

Background: This is NOT for application-indicators but system-indicators. Picture from: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators The objective is to show indicator-...
user.dz's user avatar
  • 48.3k
50 votes
6 answers
44k 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 ...
user avatar
43 votes
2 answers
27k 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 ...
rubo77's user avatar
  • 32.8k
40 votes
8 answers
129k 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 ...
hingev's user avatar
  • 6,604
40 votes
11 answers
96k 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 ...
duo8's user avatar
  • 401
30 votes
7 answers
42k 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 ...
user avatar
28 votes
8 answers
132k 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). root@linuxBox:/...
v2r's user avatar
  • 9,567
28 votes
2 answers
30k views

Suspend command in Ubuntu 16.04

In Ubuntu 14.04 I used to use the following command to suspend the computer as a user without root privileges: dbus-send --system --print-reply --dest="org.freedesktop.UPower" \ /org/freedesktop/...
tmt's user avatar
  • 1,029
25 votes
2 answers
21k 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 ...
neydroydrec's user avatar
  • 4,660
23 votes
2 answers
42k 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): ...
Bach's user avatar
  • 751
22 votes
2 answers
5k views

CRITICAL: Unable to create a DBus proxy for GnomeScreensaver

I received this critical error in my logs, but I haven't had any problems so far. If anyone knows why I get this error and what it means, I'd really appreciate an answer from you. CRITICAL: ...
Harry Curtis's user avatar
19 votes
3 answers
28k 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 ...
leemes's user avatar
  • 951
19 votes
1 answer
1k 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 org.gnome.settings-daemon.plugins....
blueyed's user avatar
  • 9,015
18 votes
1 answer
11k 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. ...
totti's user avatar
  • 6,818
16 votes
2 answers
19k 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 ...
Erigami's user avatar
  • 4,496
16 votes
6 answers
25k 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?
Erigami's user avatar
  • 4,496
13 votes
1 answer
15k 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 /tmp/dbus-...
chronospoon's user avatar
13 votes
3 answers
25k views

How to properly suspend via command

I found two working versions to properly suspend my notebook to RAM. $ dbus-send --system --print-reply \ --dest=org.freedesktop.login1 /org/freedesktop/login1 \ "org.freedesktop.login1.Manager....
cytopia's user avatar
  • 243
12 votes
2 answers
4k 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 –dest=org....
Lincoln's user avatar
  • 3,513
12 votes
3 answers
49k 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 ...
Croad Langshan's user avatar
11 votes
2 answers
4k views

Application that will lock screen after a set amount of time for Ubuntu

Is there an application for Ubuntu which will lock the computer after a defined amount of time(e.g. 30 minutes). I need it for kids to limit the time they watch cartoons. E.g. 30 minutes watching and ...
Dmitriy's user avatar
  • 285
11 votes
1 answer
10k views

how to pass a{sv} arguments to gdbus?

i have problem to passing the arguments of the function in a dictionary format (string,variant); i try to run a screencast in gnome and to start the function i need to pass these asrguments: -method ...
user552771's user avatar
11 votes
5 answers
7k 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 ...
Gigiux's user avatar
  • 797
11 votes
1 answer
11k views

How can I solve "unmatched double quote" error using dbus-monitor in combination with xargs?

To intercept (notify-osd) notifications on Linux (Ubuntu), I am using the dbus-monitor script below. Subsequently, the script runs another script (/opt/nonotifs/nonotifs/silent) with the intercepted ...
Jacob Vlijm's user avatar
  • 84.2k
10 votes
2 answers
16k views

How to set up Ubuntu PC as bluetooth headset to attend calls

I am trying to use a Bluetooth headset on an Ubuntu PC. I am able to connect phone to pc via BT. I can stream music to PC. But cannot hear call audio. I have checked in Android phone logs, and BT sco ...
Rilwan's user avatar
  • 161
10 votes
1 answer
4k 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 I ...
liberavia's user avatar
  • 121
10 votes
0 answers
863 views

GNOME Online Accounts - Timeout was reached

I recently noticed that all of my GNOME online account credentials showed as expired, so I attempted to re-enter them, only to be redirected to a blank page with the text "Timeout was reached". I then ...
viral-94's user avatar
  • 131
9 votes
3 answers
33k views

Bluez Installation - configuration error for DBUS 1.6

I am trying to install bluez 5.2 libraries on Ubuntu 12.04. while running ./configure, I received error for GLib2.0, I was able to resolve by using sudo apt get-install for GLib2. Now I am receiving ...
padma_uma's user avatar
  • 129
9 votes
2 answers
11k 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 ...
Produnis's user avatar
  • 1,757
9 votes
3 answers
2k 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 ...
HRJ's user avatar
  • 474
9 votes
3 answers
49k views

How to run systemctl command inside docker container?

I would like to run a docker container which will have the ability to run systemctl commands on its host. Following this question I didn't find a solution that would work for me. I have no hard limits ...
ofirule's user avatar
  • 543
9 votes
1 answer
7k views

How do I disable Dunst and go back to notify-osd?

I installed i3, which recommends dunst, but I'm not using i3 at the moment, and the dunst notifications don't really fit with Unity. I'd rather not uninstall dunst totally, since I might want to start ...
ash's user avatar
  • 2,117
9 votes
1 answer
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 ...
Smithamax's user avatar
  • 438
9 votes
1 answer
4k views

How to blacklist a D-Bus service?

How can an unprivileged user prevent a D-Bus service from launching? For example, /usr/share/dbus-1/services/org.bluez.obex.service is started by the session bus. There doesn't seem to be a way to "...
Nathan Osman's user avatar
  • 32.3k
9 votes
0 answers
6k views

How to fix the "Failed to connect to bus: Connection refused" problem?

When I try to reboot the system, it gives me a message: my@comp:~$ sudo reboot Failed to connect to bus: Connection refused Maybe I broke some packages, but how to diagnose and fix it? The system ...
Yu Jiaao's user avatar
  • 213
8 votes
3 answers
11k views

no module named '_dbus_bindings'

I'm unable to open "software and updates" from the GUI or the terminal of my ubuntu 16.04 system sudo software-properties-gtk sudo: unable to resolve host dna-ws: Connection timed out [sudo] ...
Gus Bishop's user avatar
8 votes
2 answers
12k 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 ...
Andrea's user avatar
  • 81
8 votes
2 answers
12k views

What is the structure of network managers system-connections files?

could anyone list the complete structure of the configuration files, which network manager stores for known networks in /etc/NetworkManager/system-connections for known networks? Sample (filename ...
Oyks Livede's user avatar
7 votes
5 answers
28k views

ImportError: No module named dbus

I was trying to update my Python and messed up my whole system. I am currently now able to start my Software Centre. I tried Googling multiple fixes but nothing helped. My Software Centre can't ...
Adrian O'neil Stephen's user avatar
7 votes
1 answer
2k views

How launch Firefox snap with profile that is already running

Firefox is broken on a fresh install of Ubuntu 22.04 LTS (Xubuntu) with Firefox 113.0.2, installed by the now default method, from Snap. When I try to launch Firefox with a profile that is already ...
markling's user avatar
  • 581
7 votes
1 answer
4k views

Run nmcli as unprivileged user

I wrote a Python program to switch WiFi connections via the Network Manager dbus interface, which (I believe) is basically equivalent to the nmcli command-line tool. The script (and nmcli) work ...
Luke's user avatar
  • 279
6 votes
2 answers
4k 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 ...
con-f-use's user avatar
  • 18.9k
6 votes
6 answers
15k 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, ...
sdaau's user avatar
  • 3,096
6 votes
2 answers
9k 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 ...
Christopher's user avatar
6 votes
2 answers
3k views

How do I call `dbus` code that monitors when screen is locked/unlocked?

I have a code snippet from (unix.stackexchange.com - Run script on screen lock / unlock) which I plan to modify because PulseAudio "undocumented feature" switches sound from TV to laptop when screen ...
WinEunuuchs2Unix's user avatar
6 votes
1 answer
17k views

How can I run code whenever a USB device is (un)plugged, without requiring root permissions?

I have a script that I wish to run whenever I plug/unplug a mouse or keyboard to my USB port. There is already plenty of documentation on how to configure udev rules to run arbitrary scripts when a ...
Denilson Sá Maia's user avatar
6 votes
1 answer
372 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
Owais Lone's user avatar
  • 7,403
6 votes
2 answers
5k 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++ ...
DarenW's user avatar
  • 279
6 votes
3 answers
6k views

"Jack audio server could not be started" in QJackCtl

I have been trying to start the JACK audio server in QJackCtl, but I get the message: DBUS: Jack server could not be started. Sorry So the symptoms of my problem are exactly the same as in this ...
Lukas D. Sauer's user avatar
6 votes
2 answers
3k views

How do I backup all files? (.dbus and dconf backup problems)

What are /home/user/.cache/dconf and /home/user/.dbus? Why does their backup fail? I tried following this 2013 answer (see code below) but while it allowed me to backup the above files, now I am told ...
DBinJP's user avatar
  • 1,379

1
2 3 4 5
8