Questions tagged [d-bus]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
16 views

How to perform action bound to a keyboard shortcut in Gnome from terminal?

How can I perform an action of any Gnome 3 keyboard shortcut in the terminal? For example: I can use dconf-editor to navigate through all keyboard shortcuts and get the dconf path. Let's say: /org/...
0
votes
0answers
57 views

How to read() from Bluez AcquireNotify file descriptor?

I am attempting to write a Bluetooth client application for Linux which subscribes to a service from a paired Bluetooth device. I am considering the use of file descriptors here in order to test ...
0
votes
0answers
25 views

systemd-run on nspawn for unprivileged users

I would like to run some programs in a systemd-nspawn container, and ideally not have to use sudo every time I want to start a program in the container. Assuming it has been started like so: # ...
1
vote
1answer
28 views

How to crash/disable/remove bluez interface in Linux?

I am building a bluetooth client for a project and I am looking for a way to crash the dbus bluetooth service offered by bluez, in Linux, prefferably in a controlled, recoverable manner. Do you have ...
-1
votes
1answer
38 views

Why systemd says it's dependency system should be used only sparingly?

From systemd.unit(5) man page: Note that while systemd offers a flexible dependency system between units it is recommended to use this functionality only sparingly and instead rely on techniques such ...
0
votes
1answer
77 views

DBUS-call failed:GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown

When I call xdg-open pic.png I get this message. ** (ristretto:7580): WARNING **: 13:44:21.730: DBUS-call failed:GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop....
0
votes
0answers
18 views

Why would someone use DBUS Proxy?

I am trying to implement an application using this GDBUS API from bluez. I tried to study ways in which to make calls to the API and I managed to call a function and obtain results. Here's an example ...
1
vote
0answers
69 views

How to prevent upowerd from being launched

Running DM-Less KDE-Plasma-5.19.5 Under a non-systemd Linux-5.4.80 and dbus-1.12.20 I try to get rid of the upowerd daemon. I understand that upowerd is launched by dbus upon request from whatever ...
0
votes
0answers
27 views

Run services as user without X (systemctl)

I have a small server running a minimal centos8. I need to create services as a user and would like to use systemctl to do so. I found I can use systemctl --user to create services without root ...
0
votes
0answers
17 views

Get Network Configuration change via DBus signal in Linux

I have a c++ program which needs to detect a network configuration change. Unfortunately, my OS is a custom build Linux so I don't have a network manager in it. So is there any other systemd service ...
0
votes
0answers
7 views

What is the best way to control systemd start up modes directly from the same deamon?

I have an daemon (controlled by systemd) that needs to be configured with the following application level configuration details: autostart: false|true|user-stopped When the option is set to false, ...
0
votes
0answers
18 views

Find dbus .service file that provides a name / debug dbus lookup process

How can I list the .service files that dbus would parse when a certain service is requested, or all .service files that dbus has parsed at start-up? I'm trying to override a system service file (in /...
0
votes
1answer
48 views

mask dbus-activated service (rtkit) via ~/.local/share?

I've been trying to mask a dbus-activated service (rtkit-daemon) via the "standard service dirs" location ~/.local/share/dbus-1/services/. The corresponding system file, which I want to ...
4
votes
1answer
205 views

hostnamectl command causes Failed to create bus connection: No such file or directory

I'm following this guide and I'm running into issues. https://www.tecmint.com/initial-ubuntu-server-setup-guide/ I am trying to create a linux machine in Ubuntu in wsl2 and then rename it using ...
1
vote
1answer
130 views

a systemd service that starts a dbus service

I'd like to start a python script that uses pydbus to listen for incoming commands via D-Bus on boot, and it needs root permissions. It would be nice if it can be stopped and restarted via systemctl, ...
0
votes
0answers
32 views

how do I unpurge dbus-x11

I want to install dbus-x11 and then I get the following error: E: Unable to locate package dbus-x11 I did apt-get purge dbus
0
votes
1answer
35 views

How to run qtdbus application as systemd?

Nice to meet you. I made an application (car<-> controller) that communicates using qtdbus provided by Qt. see. https://doc.qt.io/qt-5/qtdbus-remotecontrolledcar-example.html Fortunately, I was ...
0
votes
0answers
33 views

Error when installing apt package

When I try to install any package using apt-get it gives this error: /usr/bin/chage: error while loading shared libraries: libaudit.so.1: cannot open shared object file: No such file or directory ...
0
votes
1answer
90 views

Ubuntu Notification Failed to execute program org.freedesktop.Notifications: No such file or directory (23)

i was working on a python script that displays notification, here's the library I'm using https://www.devdungeon.com/content/desktop-notifications-linux-python from gi.repository import Notify Notify....
0
votes
3answers
2k views

Failed to get D-Bus connection: Connection refused

A sudo user named my-host is getting the following error message when trying to reload systemctl on an Amazon Linux 2 EC2 image. [my-host@ip-12-3-4-56 ~]$ systemctl --user daemon-reload Failed to get ...
0
votes
1answer
77 views

Systemd DBus API returns service not loaded for disabled services

I want to start a systemd service from its D-Bus interface. However, it seems that services that are not already started or "enabled" (running on startup) are unknown to the Systemd D-Bus ...
1
vote
1answer
95 views

Unexpected errors possibly related to systemd or dbus - how to diagnose?

I am running Linux Mint 19 Tara with a Cinnamon desktop. Since yesterday, the system malfunctions, and I have been struggling to understand what is wrong or how to debug the situation. I would ...
0
votes
0answers
15 views

Measuring the number of Pulseaudio XRuns

Is it possible to measure how many XRuns has PulseAudio server generated during its uptime? There's a method called GetXruns() in the object /org/jackaudio/Controller in the interface org.jackaudio....
0
votes
0answers
13 views

How to intercept hostname changes in order to update IP based on DHCP IP plan

We're using Rancher for the provisioning of Kubernetes clusters using a VMWare vCenter integration whereas Rancher interacts with the vCenter API in order to provision the Kubernetes nodes. The ...
1
vote
0answers
58 views

How to control the D-Bus daemon virtual memory usage?

I am currently trying the D-Bus sample codes from the following link: https://linoxide.com/how-tos/d-bus-ipc-mechanism-linux/ It worked. Then I performed the exhaustion tests on the sample code above ...
0
votes
0answers
37 views

dbus configuration in order to listen to requests from within a container

I am trying to set up an app that is capable to interact with the Bluetooth dbus interface (bluez.org). My goal is having the app to be capable to pair/connect a device. I am using the java library ...
0
votes
1answer
456 views

auth-user-pass error in openvpn3

The problem I am encountering is that whenever I try to authenticate using the auth-user-pass option in openvpn3, I always get an error similar to this: ** ERROR ** org.gtk.GDBus.UnmappedGError.Quark....
0
votes
1answer
28 views

Modification of DBus /etc/dbus-1/system.conf broke the startup process

I have modified the file /etc/dbus-1/system.conf where I have changed the document to something like that: <listen>tcp:host=localhost,bind=*,port=6667</listen> <auth>ANONYMOUS</...
1
vote
0answers
50 views

Redhat 7.7 dbus-org flooding messages log

After installing Redhat 7.7 and by checking the /var/log/messages, I found the following messages are coming every minute: Aug 24 19:33:00 dbus[1454]: [system] Activating via systemd: service name='...
46
votes
4answers
6k views

What is D-Bus practically useful for?

dbus is supposed to provide "a simple way for applications to talk to one another". But I am still not sure what it is useful for, practically. I have never seen a situation where dbus is ...
4
votes
0answers
63 views

simplest way to enable user (non-root) to suspend laptop

My laptop has suspend capability: # cat /sys/power/state freeze mem and indeed I can suspend as root: echo -n mem > /sys/power/state This works fine. But what would be a minimalist way to enable ...
0
votes
0answers
110 views

Kubuntu : Set color scheme to “Breeze Dark” from command line

I am trying to change Kubuntu 20.04 color scheme through the command line. What I thought was the solution unfortunately didn't worked. What am I doing wrong ? In ~/.kde/share/config/kdeglobals , set :...
0
votes
0answers
208 views

I keep getting this error: GDBus.Error:org.freedesktop.DBus.Error.LimitsExceeded:

I keep getting error Error: Could not create NMClient object: GDBus.Error:org.freedesktop.DBus.Error.LimitsExceeded: The maximum number of active connections for UID 1000 has been reached. when ...
1
vote
0answers
39 views

systemd service stops logging to systemd-journal after executing dbus as non-root user

Sorry for the confusing title, My current situation is following: I have a normal systemd service running (as root user&privileges). However, the service should alter my regular user's certain ...
0
votes
0answers
326 views

Notification and Notification daemon not working on window manager

I use Sway(wayland) and recently mako stopped working. Apparently there are problems with dbus, but I don't know where to dig further What I tried: Reinstalling mako/dbus didn't help Created the ...
2
votes
1answer
928 views

How to prevent D-Bus from starting a (disabled) other daemon?

Recently I noticed that the rtkit-daemon process running on my Debian 10.4 machine may be interferring with a custom server application on that machine. So I wanted to disable that realtime kit daemon ...
2
votes
1answer
236 views

How do I restore files removed from /usr/bin?

TL;DR at the bottom. Background: The following occured on my CentOS 6.10 production server. I was using a browser based terminal program to run the program Midnight Commander which is a console-...
0
votes
0answers
33 views

problem with systemd service and gsettings command to swap mouse buttons of a user

I created a script to swap my mouse buttons via gsettings command which works as intended. after creating a systemd service that runs the script as the user the gsettings command doesn't work anymore. ...
0
votes
1answer
421 views

Access ALSA as systemd system service running as a regular user

I have a service which uses both the network and sound(ALSA), and I'm trying to make a systemd system service out of it. It works as a user service, but I can't make it work as a system service. ...
0
votes
2answers
155 views

NetworkManager does not save wifi passwords

I'm trying to use D-bus method AddAndActivate connection on interface org.freedesktop.NetworkManager to create a wifi connection. I definitely pass a PreSharedKey field with the password, but ...
0
votes
1answer
68 views

Firefox gives me dbus error

When I run Firefox under Wayland I get, dbus[913]: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file ../../../dbus/dbus-message.c ...
1
vote
1answer
91 views

How to set VLC volume with qdbus?

Seems like this should be pretty simple. I can see the volume this way: #> qdbus org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Volume 0.600006103515625 I can ...
2
votes
1answer
145 views

Getting available networks via NetworkManager D-Bus interface

I'm looking for how I can find the available networks (like from nmcli dev wifi list) using the D-Bus interface. Looking at the API I don't see any Properties or Methods. I'm wondering if it is ...
1
vote
0answers
218 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 ...
1
vote
0answers
126 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/...
0
votes
1answer
49 views

GDBus/PolicyKit error in LXDE

I am using LXDE with Parabola (a libre derivative of Arch Linux). When I log in to the desktop environment, a window pops up with the following error: GDBus.Error:org.freedesktop.PolicyKit1.Error....
1
vote
0answers
192 views

Freedesktop dbus error

In .xsession-errors file I noticed strange message: dbus-update-activation-environment: setting LC_IDENTIFICATION=uk_UA.UTF-8 dbus-update-activation-environment: setting LC_TIME=en_US.UTF-8 dbus-...
2
votes
0answers
194 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 ...
0
votes
0answers
29 views

Meaning of uint32:0 in dbus-send and bash syntax

dbus-send --system --print-reply \ --dest=org.freedesktop.DBus \ /org/freedesktop/DBus \ org.freedesktop.DBus.StartServiceByName \ string:org....
0
votes
1answer
361 views

Cannot trap some Python DBus except errors

I'm getting this error in Python which is non-fatal and I'm presuming is written to stderr: ERROR:dbus.proxies:Introspect error on :1.4:/org/freedesktop/thermald: dbus.exceptions.DBusException: ...

1
2 3 4 5 6