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.

0
votes
0answers
18 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 ...
0
votes
0answers
11 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: ...
0
votes
0answers
10 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
42 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
25 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 ...
1
vote
0answers
39 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 ...
1
vote
1answer
57 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
226 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
1answer
58 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
40 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 ...
1
vote
0answers
226 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
141 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
143 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 ...
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
242 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 ...
2
votes
0answers
339 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':...
0
votes
2answers
108 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 ...
3
votes
0answers
681 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
344 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
99 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 ...
0
votes
1answer
163 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/...
1
vote
1answer
286 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 ...
2
votes
1answer
915 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 ...
2
votes
0answers
28 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 ...
1
vote
1answer
2k 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....
0
votes
2answers
1k views

How do I restart dbus after manual intervention in upgrade to Ubuntu 18.04?

I am trying to upgrade from Ubuntu 16.04 LTS to 18.04 LTS. No matter which upgrade command I try: do-release-upgrade or apt dist-upgrade, at some point in the upgrade I start getting numerous "Failed ...
2
votes
2answers
63 views

How to start a root service from a GUI

So I get that running a GUI application as root in a Linux environment is a Bad Idea, and the prevailing wisdom seems to be that it's better to run such a service by having separate processes: a GUI ...
2
votes
0answers
57 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
0answers
368 views

Get DBUS services list

Using the following command I can get the list of DBUS services. dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames ...
3
votes
0answers
197 views

How to prevent applications from causing Powerfail when power management is configured to suspend at 10% battery

When my laptop attempts to suspend itself to avoid powerfail, instead of successfully suspending, I get a popup from xfce4-power-manager: "Are you sure you want to hibernate the system? An application ...
2
votes
0answers
55 views

Why does gpg --card-status require dbus to be restarted?

When I log in with my (usb) yubikey 4 inserted, I can run gpg --card-status and it gives the expected result. If I remove the yubikey and run gpg --card-status it, correctly, tells me that there is no ...
3
votes
2answers
2k 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 ...
0
votes
1answer
407 views

xinitrc - set DBUS_SESSION_BUS_ADDRESS

Not using display manager and executing startup logic via xinitrc. Problem is some dbus-related env variables are not set. xinitrc excerpt: dbus-update-activation-environment --systemd --all # note ...
2
votes
1answer
69 views

Multiple NICS on same IP Solution needed

My network topology is as follows - My problem, is that the Purple Red Green and Orange PC's are actually hard coded industrial systems, and i have no possibility of changing any settings on them. ...
1
vote
0answers
155 views

How to launch a dbus client from a script?

I've just developed a dbus client, writed in Python, to shows a desktop notification when it receives a message from a dbus service, which is launched by another user. The dbus client code is here: ...
1
vote
0answers
370 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 ...
2
votes
2answers
6k views

Failed to get D-Bus connection: No such file or directory. $XDG_RUNTIME_DIR not set. libpam-systemd installed

I installed Yunohost on a LIME2 like I did with my Pi3 and now I have the same error as two months (see "Cannot enable user service. “Failed to get D-Bus connection: Connection refused” Support"), ...
1
vote
0answers
45 views

How can I debug a dbus `Spawn.ChildExited` dbus error?

I have a python script that fails on the following line: controller = bus.get_object(service_name, "/org/jackaudio/Controller") The error is: dbus.exceptions.DBusException: org.freedesktop.DBus....
0
votes
1answer
68 views

Dedicated Centos 7.2/Plesk 12.5 server most services Fail on boot. dbus failure - Looping too fast. Throttling execution a little

Suddenly this Centos 7.2/Plesk 12.5 dedicated server restarted and never booted again. most services fail. i don't have ssh so i can only go through rescue system (Debian) and check the logs. I didn't ...
10
votes
1answer
8k views

Cannot enable user service. “Failed to get D-Bus connection: Connection refused” Support

I get this error when running any systemd command as a user: admin@Xroklaus:~ $ systemctl --user list-units Failed to get D-Bus connection: Connection refused Without the user parameter, the command ...
1
vote
1answer
153 views

What does it mean “The D-Bus daemon is not running”?

I have a PC with Debian Jessie (amd64) with Gnome as visual environment and I am trying to install Blueman and / or Bluedevil (I thinks these packages are from KDE). I install them from the ...
9
votes
0answers
683 views

gnome-keyring usage without an x session

My use case is that I have a headless server that software development is performed on. I ussually enable X11 forwarding for the SSH connections to it, but I can't for distant locations with slow ...
0
votes
1answer
204 views

How to setup an OpenRC service to run at “login” level?

What I want is simple: I want that after my user login through agetty, my display manager (LightDM) or whatever login way, a specific service of OpenRC be run. Is there a way to setup that?. My ...
31
votes
2answers
12k views

It is OK to change /etc/machine-id?

I cloned a disk (SSD) and put the cloned disk into another machine. Now both systems have the same value in /etc/machine-id. Is it any problem to simply edit /etc/machine-id to change the value? Can I ...
1
vote
0answers
2k views

CentOS 7.2 dbus can't active polkit but can start polkit service manual

I just use CentOS 7.2, and default systemd version (systemd 219) used by CentOS 7.2; I just find my physical host, systemctl command can not use. eg. if I execute systemctl restart syslog-ng it will ...
0
votes
1answer
380 views

could not connect to ConsoleKit: Could not get owner of name 'org.freedesktop.ConsoleKit': no such name

OS: Linux Mint 18.2 Cinnamon 64-bit (which is based on Ubuntu 16.04) In an effort to disable hibernation, I did the following with a consequence. After I have moved the following polkit file to root ...
3
votes
0answers
241 views

Is there a specific reason as to why Docker isn't a service on the dbus? [closed]

I was looking at the services available on the dbus/sd-bus. I noticed though that some services existed (e.g. NetworkManager, system-logind, wpa_supplicant), Docker was missing. I was wondering why ...
1
vote
0answers
34 views

How to react to laptop lid events? [duplicate]

I have a Fedora 26 Lenovo laptop, which means I have a little trackpoint nub for pointer motion as well as the trackpad. By default, the pointer motion is sluggish. So I have a job that sets some ...
-2
votes
1answer
82 views

Can you please tell me these Locale Parameter's Meaning? [closed]

output of my env command LC_TELEPHONE=en_US.UTF-8 HUSHLOGIN=FALSE DISPLAY=:0 SHLVL=2 LC_CTYPE=en_US.UTF-8 LC_NAME=en_US.UTF-8 XDG_VTNR=1 XAUTHORITY=/home/alamin/.Xauthority COLORTERM=truecolor ...
1
vote
0answers
48 views

Creating a gdbus object (sim card)

I have a wwan modem in which I can insert a sim card, via gdbus introspect I am a ble to retrieve every information I would need to simulate that sim card (Identifier, imsi, operator identifier and ...