Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [d-bus]

A message bus system, a simple way for inter-process communication. It also helps coordinate process lifecycle.

1
vote
1answer
279 views

Use dbus to get name of mediaplayer currently playing

EDIT: I removed and rewrote most of the post to make the question more direct and to make the post a lot shorter. You can of course view the edit history to get the previous version. Using bspwm on ...
1
vote
1answer
3k views

CentOS 7 reboot error getting authority?

I'm trying to reboot the CentOS 7 after yum update, and getting the following error when I run sudo reboot. Error getting authority: Error initializing authority: GDBus.Error:org.freedesktop.DBus....
8
votes
6answers
22k views

Why can't I run Gnome apps over remote SSH session?

Logging into a remote host using ssh -X me@host, I successfully run gnome-terminal -e "tail -F /var/log/file" &. When I log off and then try the same thing the next day, I get this: Failed to ...
2
votes
1answer
1k views

How do I fix my problem with hostnamectl command. It cannot connect to dbus

I am running Debian 9.4. hostname works. $ sudo strace -f hostnamectl ...snipped... connect(3, {sa_family=AF_UNIX, sun_path="/var/run/dbus/system_bus_socket"}, 33) = -1 ENOENT (No such file or ...
3
votes
2answers
3k views

GCP: Debian stuck at setting up dbus

I have been trying to install GUI, i.e. gnome and lxde, into Debian 9 stretch in google cloud computing instance. I have even increased the cpu, ram, harddisk size. However, the installation is always ...
2
votes
1answer
10k views

Error getting authority: Error initializing authority: Could not connect: Resource temporarily unavailable (g-io-error-quark, 27)

Every time I restart a service (e.g. service exim restart, run as root), I get the following error message: Error getting authority: Error initializing authority: Could not connect: Resource ...
8
votes
3answers
9k views

Trouble with dbus and systemd/user

I have systemd set up so that using systemctl start user@me will start my user services as I expect, but my dbus one just won't go (which I need for PulseAudio). Is there some way I can check dbus or ...
2
votes
1answer
2k views

Ubuntu 14.04 dbus unable to start any daemons

syslog for running sudo invoke-rc.d dbus restart: Feb 28 22:01:45 javaprophet-desktop NetworkManager[946]: <info> caught signal 15, shutting down normally. Feb 28 22:01:45 javaprophet-desktop ...
3
votes
2answers
1k views

Xen libvirt access for non-root user

I've installed Xen and libvirt on a CentOS 6.6 machine. All the tools (virt-manager, virsh etc) work perfectly as root (directly or via sudo) but I cannot allow another user to connect (failed to ...
5
votes
1answer
928 views

Unable to access systemd --user due to DBus access permissions

I'm trying to setup a service account using systemd units to manage the actual service + supporting code. However, it looks like the systemd user daemon isn't working properly. $ systemctl --user ...
0
votes
0answers
25 views

using busctl as non-root user

I'm trying to start/stop/determine the status of a user systemd service file from within a program, not running as root, using the systemd sd-bus api. Lets stay with the example of determining the ...
21
votes
5answers
67k views

dbus: [system] Failed to activate service 'org.freedesktop.login1': timed out

I keep getting the following error messages in the syslog of one of my servers: # tail /var/log/syslog Oct 29 13:48:40 myserver dbus[19617]: [system] Failed to activate service 'org.freedesktop....
3
votes
1answer
1k views

Setroubleshoot dbus access error

When running setroubleshootd in fedora, I get this error: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.79" is not allowed to own the service "org.fedoraProject.Setroubleshootd" due to ...
0
votes
0answers
13 views

Is there a generic DBUS subscription service

I am looking for "something" that runs scripts/programs in my user context as a reaction to signals seen on the system(!) DBus. I'd imagine the best solution looking and working a lot like cron: ...
3
votes
0answers
2k views

How can I monitor the interactions of an application with dbus?

I have a set of applications, I want to montior any and all interactions of the applications with dbus. The things I've played with don't seem to have a way of focusing on just one application. ...
0
votes
0answers
12 views

D-BUS wpa supplicant dhclient integration

I have a system that doesn't use NetworkManager. I use wpa_supplicant to connect to an access point and dhclient to obtain a lease for an IP4 address. When I lose the access point and wpa_supplicant ...
1
vote
0answers
57 views

Manually restore saved session files on KDE using qdbus command

At times, i have multiple konsole terminal open with multiple tabs. I would like to save and restore it manually, just in case i accidentally close the window. In KDE there is a command to save the ...
0
votes
0answers
30 views

How to manage a dbus service which is provided by multiple applications?

On my system (debian stretch) There is a folder full of files which all define different dbus services, provided by different appliactions: /usr/share/dbus-1/services The files there are named like ...
4
votes
3answers
1k views

debian without dbus: login/systemd complains about failing to connect to d-bus after motd

I have barebones raspbian, i.e. basically Debian 8, with systemd and no X. I removed dbus with "apt-get remove dbus". It deinstalled cleanly, with no apparent programs depending on it. Now, whenever I ...
1
vote
0answers
44 views

User d-bus service post-start/pre-stop

I need to run a script AFTER systemd has started the user dbus.service and run another script BEFORE systemd attempts to stop dbus.service. I don't want to modify the existing service files. The ...
17
votes
5answers
8k views

Run a dbus program in crontab , how to know about the SESSION id?

I need to run some program within crontab , but how can the program know about dbus session id ? it's only available for programs launched by session managers.
1
vote
1answer
59 views

Why is my terminal emulator process is using d-bus?

$ sudo lsof +E -a -U -p 1480 lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfsd-fuse file ...
1
vote
1answer
283 views

How to use notify-send to notify users as root? [duplicate]

#!/bin/bash export DISPLAY=:0 state=$(upower -i $(upower -e | grep BAT) | grep --color=never -E "state" ) stat=${state:25:32} batperct=$(upower -i $(upower -e | grep '/battery') | grep -E "percentage:...
0
votes
3answers
3k views

Starting A DBus Session Application from systemd User Mode

I have a simple need to run a systemd user service with access to all of the environment variables provided by the user DBus session. Here's my example unit: [Unit] Description=Environment Demo [...
0
votes
1answer
69 views

Forwarding tcp to d-bus via socat failed

I'm trying to build a tcp proxy to my local session dbus daemon. I did socat TCP-LISTEN:55556,reuseaddr,fork,range=127.0.0.1/32 ABSTRACT-CONNECT:/run/user/1000/bus However, DBUS_SESSION_BUS_ADDRESS=...
1
vote
0answers
384 views

notify-osd not working after i3wm restart

Notifications won't work after I restart i3wm (with super + shift + r). My ubuntu version is 16.04 and I installed the patched notify-osd which allows customizable notifications. From syslog I ...
1
vote
0answers
52 views

Clean way to run proper file manager from Firefox on Linux

As many of mans known, currently solution with defaults.conf and mimetypes.cache does not work. Firefox currently uses D-bus to activate service org.freedesktop.FileManager1 to handle "Open ...
0
votes
2answers
156 views

Plasma-browser-integration breaks with `export QT_QPA_PLATFORMTHEME=“qt5ct”`

I use plasma-browser-integration (not using KDE) to get firefox websites (like youtube, netflix..) to respond to mpris commands like play/pause, and to get the playback status (playing/paused) so I ...
9
votes
1answer
2k views

How do I prevent ssh remote login from breaking dbus?

I'm running openSUSE 11.3 on my workstation at work under KDE, I don't have root access to it. The default shell has been set to tcsh. When I am logged in at my workstation and log in remotely from my ...
0
votes
1answer
1k views

Could not start D-bus, can you call qdbus?

I am using fedora 22. Yesterday it was working fine. But when I opened it today after entering my password it says "could not start D-bus, can you call qdbus?" When I searched for the solution in ...
2
votes
1answer
3k views

Configuring DBUS to start JACK

I have the Jack Audio Connection Kit (JACK) installed, but cannot seem to get jack_control start to start the service. I'm using Slackware64-current, which recently updated its /etc/dbus-1/system....
5
votes
1answer
2k views

Access to user's session D-bus from their cron commands

What is needed to give cron commands access to the session bus (if it is running)? It used to work for me, on Debian Stretch (testing) since switching systemd until relatively recently (might have ...
1
vote
0answers
270 views

How to prevent kdeconnectd from starting automatically?

These don't work: sudo update-rc.d kdeconnectd disable sudo systemctl disable kdeconnectd.service There is no script for it in /etc/init.d/ and the /usr/share/dbus-1/services/org.kde.kdeconnect....
0
votes
1answer
160 views

What's causing dbus-daemon to take up over 3GB of RAM?

dbus-daemon is consuming a lot of memory on my Debian 9/KDE machine. How can I find out why? The amount of allocated RAM is not changing anymore: it's stable at well over 3GB. I already tried closing ...
0
votes
2answers
122 views

i3wm: Fn key causes certain apps to crash (Manjaro on ThinkPad E570)

Running i3wm on a Lenovo Thinkpad E570. Everything else typically works just fine. However, pressing the Fn key instantly kills Firefox (if open), all tray icons, and dunst. Some notes: There is ...
4
votes
2answers
3k views

How to create a daemon which would be listening to dbus and fire script on message

I want to create a daemon, which would fire up a shell script in the background every time I unlock the screen on my ubuntu. I managed to create such script according to answer to related question: ...
1
vote
0answers
9 views

DBus Transport - force transport to idle state from Bluez5 embedded side - A2DP [closed]

I'd like to be able to force Bluez's transport state from active to idle on the rendering side of a custom embedded platform. This issue is centred around the fact that simply pausing the A2DP ...
1
vote
1answer
3k views

How do I use GNOME Keyring with Python Keyring in virtual environment?

I have written a Python script that I would like to run in the background on my Raspberry Pi. The script makes use of the Python module Keyring (link), which is used to access a keyring backend to ...
2
votes
0answers
376 views

Systemd service timeout

I am running Debian 8.11 inside a XEN Guest. In the syslog there are the following messages which get repeated every few seconds: dbus[]: [system] Failed to active service 'org.freedesktop.systemd1':...
2
votes
2answers
4k views

g-io-error-quark 39 error when stopping dbus-service

When I restart a particular computer there is an error message, # init 6 Error getting authority: Error initializing authority: Could not connect: Connection refused (g-io-error-quark, 39) I found ...
0
votes
1answer
177 views

Can gentoo provide a Xorg/Wayland + Browser , without needing dbus, udev and systemd?

I have for the good part of a day tried to install gentoo distribution, desiring to avoid at all costs the following software dbus systemd udev My assumption was that using the USE flags in /etc/...
3
votes
0answers
753 views

How do you enable the secret-tool command (backed by gnome-keyring, libsecret and dbus) in a headless CentOS Docker container?

I'm trying to use the secret-tool command to store a secret securely in a running headless CentoS 7.5.1804 Docker container, but can't seem to find which packages and/or configuration is necessary to ...
0
votes
1answer
403 views

nm-applet does not respond to clicks on the tray icon unless started with sudo

I'm running an Archlinux system with i3 as a window manager and nm-applet does not display an icon or respond to mouse clicks. It used to in the past, and does on some other systems with (as near as I ...
-1
votes
1answer
112 views

Error in importing dbus in python on ubuntu 16.04

I am trying to import dbus in a python script. But I am getting the following error Traceback (most recent call last): File "playSong.py", line 4, in <module> import os, dbus ...
1
vote
1answer
349 views

Process id to loginctl session id

I am having one "small" problem :) If I run command loginctl list-session I will get output that will have columns session, uid, user and seat. So I have session here as c6, c2, c4, etc. Also, I ...
3
votes
1answer
770 views

What's the sense of DBus objects?

Despite reading through tons of DBus tutorials, I still struggle to understand the whole concept. In my opinion this was one of the best explanations so far: http://telepathy.freedesktop.org/doc/book/...
1
vote
0answers
61 views

udev action to call notify-send not working [duplicate]

I have been trying to make a udev rule for a while, but without succes. For testing purposes, I have a file /etc/udev/rules.d/80-power.rules which contains ACTION=="add", RUN+="/opt/eigen_scripts/...
2
votes
0answers
60 views

how to run a script before execute a dbus-send command?

I have the following problem: on lubuntu 16.04 I can send the laptop to sleep (suspend on RAM) using a hook script to switch to a virtual teminal before to suspend and reswitching out from a vt after ...
2
votes
2answers
995 views

What makes it possible for a `pulseaudio' process to get the nice level of -11?

I noticed that a pulseaudio process on my Gentoo Linux machine has the nice level of -11. But I don't know how it has gained such a high priority regardless of being owned by a normal user. I know a ...
2
votes
0answers
30 views

How can I detect when my laptop is going to sleep

I'm using fedora 28. I have a series of programs that I'm launching based off lock and unlock times, but I wanted these programs to adjust their behavior if sleep is detected. So I want to create ...