Questions tagged [d-bus]
A message bus system, a simple way for inter-process communication. It also helps coordinate process lifecycle.
137
questions with no upvoted or accepted answers
6
votes
3
answers
3k
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 ...
6
votes
0
answers
492
views
Running script before suspending while using dbus
I have a file: /etc/pm/sleep.d/85rmNvidiaModule. In it I have:
#!/bin/bash
case $1 in
suspend)
echo "Oh, this time we are doing a suspend to RAM. Cool!"
sudo modprobe -r nvidia-...
5
votes
0
answers
4k
views
dbus Failed to connect to system bus: Error.LimitsExceeded: The maximum number of active connections for UID 1019 has been reached
(title was unable to create 50+ VNC+Gnome sessions (dubs/systemctl limits) )
I am trying to create 50 VNC display session on a CentOS 7.6 machine. I created a local user. Once logged in, I could ...
5
votes
0
answers
1k
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 ...
5
votes
2
answers
5k
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 ...
5
votes
0
answers
2k
views
DBUS Access Denied
I am trying to trouble shoot a multi-part application that communicates between its different branches with DBUS. This application has been working great for years, but after a recent power outage, ...
5
votes
0
answers
3k
views
Log dbus Desktop Notifications
Sometimes I get error messages in desktop notifications, such as this:
Unfortunately, it's difficult to debug this. I can't use xprop to see the process id that sent it. It claims to be from ...
5
votes
0
answers
1k
views
Which Desktop Environments do not require D-Bus?
Are there Desktop Environments (i.e. something comparable to Gnome, KDE, Xfce etc.) which do not require D-Bus?
An optimal answer would best give a comprising list or alternatively confirm that today ...
4
votes
2
answers
191
views
Launch a node server then, when active, a web browser in systemd (Wayland)
I'm developing a web-based application, meant to run in an embedded Linux device. There are two parts I need to have launched when the device boots up: the node server (serving locally) and the cog ...
4
votes
0
answers
3k
views
Error spawning command line “dbus-launch --autolaunch=“xyz” --binary-syntax --close-stderr”: Child process exited with code 1
I've been getting this error on multiple occasions. When I enter sudo mousepad I get the following output.
[privileged@arched ~]$ sudo mousepad
(mousepad:981): Mousepad-CRITICAL **: 14:12:48.549: ...
4
votes
0
answers
2k
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
...
4
votes
0
answers
689
views
How do I run my program (and dbus) as a service on a headless server?
I have a Fedora 20 server running headless, which I want to run my service. I'd like it managed by systemd so that it runs whenever the server is powered on.
My service is written in Python, and ...
4
votes
0
answers
862
views
Compiling and running Snapper for Ubuntu
I am trying to get snapper working in my Mint 14. (The version from launchpad is old and not compatible with Ubuntu 12.10. The OpenSuSe's build project failed to build it, too). So I try my luck with ...
3
votes
0
answers
1k
views
Can't send mail using Kmail
I'm using KDE on debian.
On Kmail application, while sending a mail I got the following error:
Failed to get D-Bus interface of mailfilteragent.
But, inbox is synchronized properly. Previously, I ...
3
votes
0
answers
129
views
What is causing this 3s delay in gvim startup?
The gvim program is stuck for 3 seconds before opening any file. This issue is isolated to gvim, vim opens just fine. Therefore, the cause must be somewhere in X or some related service and not vim.
...
3
votes
0
answers
104
views
Lightdm multiseat problem on debian
I have a problem with multiseat and lightdm, problem is somehow with systemd and dbus, but if I have all setup correctly and setup dbus with allow setting for everything, I always get permission ...
3
votes
0
answers
2k
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':...
3
votes
0
answers
697
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 ...
3
votes
0
answers
959
views
Terminator fails to start in i686, DBus issue in Python
I have a fresh Arch install on a i686 system, running Terminator 1.91. The program is refusing to load, debugging gives me the output:
ConfigBase::__init__: Borg::__init__: Preparing borg state for ...
3
votes
0
answers
1k
views
How do I start services that use session D-Bus?
I've written several programs that use D-Bus to communicate across a user session (i.e., not the system session). This all works great when using my development system, but now I want to have these ...
3
votes
1
answer
422
views
Dbus Inhibitor added but immediately removed
I've learned that it's possible to create inhibitors for a GUI session via dbus. However, when I do try to add an inhibitor, it is immediately removed. Here's an example.
I call to add inhibitor via ...
3
votes
0
answers
881
views
Bluez bluetoothd requires root for all processes interacting with it
I've upgraded my bluez installation to version 5.41 on my Ubuntu xenail box (16.04). I'm trying to do some testing with a piece of bluetooth low energy hardware so I'm staring bluetoothd with the ...
3
votes
1
answer
2k
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 ...
3
votes
0
answers
3k
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.
...
3
votes
0
answers
837
views
Discover windows in current KDE activity with d-bus
I want a hotkey to start a new konsole session, new chrome tab etc. I can just bind a global hotkey to a KDE command to do it. For example, here's a script that starts a new Konsole session:
#!/bin/...
3
votes
0
answers
517
views
Restricting D-Bus access to the logged-in user via ConsoleKit or systemd
I need to restrict the client of a D-Bus service to only the user logged into the system locally, via ConsoleKit or systemd. How must I configure or write the D-Bus service to do so?
3
votes
3
answers
2k
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 ...
2
votes
0
answers
1k
views
systemctl shows Failed to get D-Bus connection: Operation not permitte
os:CentOS Linux release 7.5.1804 (Core),physical machine not docker ,not virtual machine
I upgrade clickhouse first with yum localinstall ./clickhouse-*.rpm, and then I regreted, I downgrade ...
2
votes
0
answers
1k
views
Run dbus-monitor in system mode as non-root user
Is is possible to monitor the D-Bus calls across the system bus as a non-root user? I want to create a service to capture the raw D-Bus calls in my system, but my preference is to run custom services ...
2
votes
0
answers
375
views
How to run an arbitrary command from a Kwin script?
I want to run some commands when the active window changes in KDE. How can I do this from within a kwin script?
My use case is that I want to change monitor color preset for some applications, and ...
2
votes
1
answer
3k
views
How to list all object paths under a dbus service only usign dbus command-line utility?
How can I list the object path under a dbus services using ONLY dbus-send command line utility?
For now, I can only list services:
dbus-send --system --dest=org.freedesktop.DBus --type=method_call --...
2
votes
0
answers
51
views
What is responsible for starting the session bus in gdm3?
I'm trying to get gdm3 working on Alpine Linux, but it fails on finding the session bus. Specifically, this assertion fails: https://gitlab.gnome.org/GNOME/mutter/-/blob/40.4/src/wayland/meta-wayland....
2
votes
0
answers
688
views
How to solve problem building images with Podman: "sd-bus call: Connection reset by peer"?
Building a PostgreSQL image with podman 3.1.2 (previous 3.0.1) results in
sd-bus call: Connection reset by peer
This also happens when executing example from Podman http://docs.podman.io/en/latest/...
2
votes
0
answers
539
views
DBus NameOwnerChanged
When i run dbus-monitor --system, i got these 20 events per second:
signal time=1585510053.359267 sender=org.freedesktop.DBus -> destination=(null destination) serial=2019 path=/org/freedesktop/...
2
votes
1
answer
1k
views
DBUS failed to open bus when using sessionbus
I'm trying to create/start a service that uses the session bus. It doesn't exactly have to be the session bus, I just want to get it working and don't know the difference between the two, just as a ...
2
votes
0
answers
4k
views
How to avoid polkit error/timeout "Authorization not available" when restarting systemd services as root
On a very small server I have polkit and dbus daemons/services not running in order to save resources and harden the server (these are not needed for normal running and they increase the attack ...
2
votes
0
answers
2k
views
Debian 10 fcitx not starting on startup
I was trying to add another language on debian 10 with KDE and I got this
I searched the net and found one solution, if I run
dbus-launch fcitx
I can use the Input Methodtab. To make this start ...
2
votes
0
answers
161
views
Notifications about X input device changes
I am developing an applet for Cinnamon which lets me enable/disable the touchscreen of my laptop. This also shows the current status of the touchscreen.
Currently I am using synchronous calls to the ...
2
votes
0
answers
688
views
Cannot use gdbus command against same arguments of dbus-send
On Fedora GNOME Xorg session, I am using
$ dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/Core org.gnome.Mutter.IdleMonitor.GetIdletime
to retrieve the ...
2
votes
0
answers
187
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 ...
2
votes
0
answers
435
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
0
answers
256
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 ...
2
votes
0
answers
842
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
0
answers
626
views
what's the relationship between sd-dbus && dbus-daemon?
I am confused recently about sd-dbus && dbus-daemon.
In this blog: http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html
lenart says from v221 release of systemd use sd-dbus API
I ...
2
votes
0
answers
686
views
How do I make a gdbus call from udev?
I am trying to set the display brightness through udev so that I can have different brightness levels on battery and mains power. The following gdbus call works from the command line:-
gdbus call --...
2
votes
0
answers
226
views
D-Bus related runtime crash when trying to open SDL2 window
On my system, when running the following snippet of C++ code compiled with either clang or gcc
#include <cstdio>
#include <SDL2/SDL.h>
int main(int argc, char** args)
{
printf("Hi");
...
2
votes
0
answers
1k
views
What happens if dbus connection fails?
I am trying to find a root cause for server hung.
I found that a process crashed with process id 14900 and the following are the log in message. No core dump is saved as it is not related to any ...
2
votes
1
answer
815
views
Dbus: Logout other user
I'm new with dbus. I know how to logout current user from terminal using dbus messages dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager ...
2
votes
1
answer
157
views
Which service is registered for certain interface on D-Bus?
I know PolKit uses org.freedesktop.PolicyKit1.AuthenticationAgent interface to connect to authentication agent. I want to know which service is registered for this interface. What is the best way to ...
2
votes
0
answers
558
views
I have trouble analysing the cause of this (firefox) segfault
When executed within a minimal (unprivileged) LXC container, firefox segfaults (other graphical applications work fine).
I'am unable to find the exact cause of this segfault (which is most likely due ...