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
1 answer
42 views

su : connect to another user with D-BUS activated

I created a user that run timers and service with systemctl --user. When I try to login via ssh, I have no issue with systemctl --user. But when I connect to this user with su, I have a bus error: me@...
Ricain's user avatar
  • 141
2 votes
2 answers
124 views

How do notifications work on linux?

I use ArchLinux, but this should be irrelevant, other than being the reason why I often refer to its wiki pages. I think don't have a really clear understanding of how notifications work, and what are ...
Enlico's user avatar
  • 1,523
2 votes
1 answer
40 views

Cannot close LUKS volume while any flatpak app is running

The problem I cannot cryptsetup close any LUKS volume while any flatpak app is running in the background. Yes, the flatpak app just has to be running in the background, I'm not trying to use ...
renzev's user avatar
  • 111
0 votes
2 answers
54 views

Raspi - DBUS - Bluez: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist

I'm facing the following issue: I have an app that is written in Go that makes use of the bluetooth api. When compiling for windows and running it, the app works. When compiling for my raspberry pi, ...
rollstuhlfahrer's user avatar
0 votes
1 answer
56 views

What is a{sv}(oayays)b dbus signature

I'm trying to invoke CreateItem method on org.freedesktop.secrets dbus service. busctl --user call org.freedesktop.secrets /org/freedesktop/secrets/collection/login org.freedesktop.Secret.Collection ...
a001's user avatar
  • 3
1 vote
1 answer
88 views

How to get the destinations of two instances of VLC

If you have only one instance of VLC running, you can talk to VLC with dbus-send using org.mpris.MediaPlayer2.vlc as destination: $ dbus-send --dest=org.mpris.MediaPlayer2.vlc ... If you have two ...
Eddy Sorngard's user avatar
0 votes
1 answer
186 views

25 second delay: "No skeleton to export"

Stuck for quite a while with the problem that launching GNOME apps causes a delay of exactly 25 seconds. I hope someone can read this syslog excerpt better than I can; what a "background monitor&...
Aaron Brick's user avatar
0 votes
0 answers
30 views

Allow cronjob to restart systemclt user unit

I have a systemctl user unit: [Unit] Description=my app Wants=network.target After=syslog.target network-online.target [Service] Type=exec ExecStart=/home/user/bin/myapp StandardOutput=append:/home/...
Mark's user avatar
  • 723
0 votes
1 answer
278 views

Arch linux; org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”

I use sway on arch linux and a lot of apps log this error message: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser” How can I resolve this issue ? Thank ...
Jan Černý's user avatar
  • 1,321
0 votes
0 answers
26 views

Detecting system wake event using Dbus in linux

I wanted to perform some task in my application, as soon as the application wakes from sleep mode. To do that I wanted to detect the wake event in my application. I m detecting the sleep event in my ...
Vipul Gupta's user avatar
1 vote
1 answer
144 views

Flatpak app can’t open links

I don’t know much about flatpak, so not sure where to look for. I can’t open links from thunderbird flatpak to firefox flatpak. I’ve looked around it seems that it should be an problem with portals. ...
Louis's user avatar
  • 121
0 votes
0 answers
31 views

Xvnc and Wayland session running in paralel: How to force terminal launch in Xvnc

Context: I have three laptops. One with Windows, another one with Mac and finally one with Fedora. I want to continue using my Fedora destkop when on Windows/Mac, so I start an Tiger VNC server on ...
earizon's user avatar
  • 101
0 votes
1 answer
46 views

Supress bluetooth connection notifications by regex on the name of the connecting device

I run a manjaro system with i3 as a window manager and theblueman-applet. When I'm at work, the neighbours' machines continually connect and disconnect to my machine, resulting in annoying popups ...
Brad's user avatar
  • 211
1 vote
1 answer
150 views

how can i make a dbus connection from a sandbox to pipewire

How can i create a DBUS connection to PipeWire (to communicate with the sound daemon) from a SElinux sandbox?
ministry's user avatar
0 votes
0 answers
28 views

Bluez way to tell if connected device has BT Classic, BLE or both

Is there a programmatic way to tell which transport layer (BD/BLE/Both) is used to connect to dev? I use sd_bus lib with C++ to handle DBus calls and signals. Thanks!
JWZ1996's user avatar
  • 41
0 votes
0 answers
41 views

How to detect when screen goes on while screensaver is locked?

I am trying to execute MyCommand when the screen goes on while screensaver is locked in KDE, in two situations: when the screen is simply locked, and when the system is in suspend mode. Both are ...
Luis A. Florit's user avatar
0 votes
0 answers
240 views

Fixing DBus after changing /home /lib and /root permissions

Firstly, I know, it was dumb, but now it's done and don't need to say "why did you do that" etc... So, I'm using Almalinux 9 and I changed permissions of /home /lib and /root. Now, firewalld ...
Moréo's user avatar
  • 1
1 vote
1 answer
339 views

Read systemd-networkd leases information with busctl and dbus

I want to use busctl to read the systemd netowrkd lease information for a specific link in Linux. With busctl tree on my system, I can see the networkd interfaces: Service org.freedesktop.resolve1: └─/...
PhilBot's user avatar
  • 79
0 votes
0 answers
147 views

Gnome crashes - dbus-broker-launch: Too many open files

I have been having an issue where GNOME just randomly crashes - I get a blinking cursor for a minute or two and then it automatically restarts. Of course the session is not preserved. This happens at ...
InToSSH's user avatar
1 vote
0 answers
581 views

How to switch to a different xdg-desktop-portal to have a different file picker?

I am using nemo as my default file and desktop manager using How to set Nemo as the default file manager in Ubuntu? In brief it looks like: sudo apt install nemo xdg-mime default nemo.desktop inode/...
Ahmad Ismail's user avatar
  • 2,648
0 votes
0 answers
145 views

Configure Ofono with SIM800C device

I'm trying (as a complete newbie) to use ofono to manipulate my SIMCOM 800C device. I've compiled it from source and configured all the necessary services (D-bus and udev). The udev rule from the doc ...
tobihans's user avatar
  • 101
0 votes
0 answers
119 views

How to use sd_bus_match_signal() with file descriptor

I am implementing a DBus signals listener as a part of bigger application. All of the examples, first register callback to signal with sd_bus_match_signal() and them they have a sd_event_loop() LINK ...
JWZ1996's user avatar
  • 41
1 vote
1 answer
1k views

Very slow launch for some applications after update to Debian 12

I run Debian with Blackbox as my window manager which I start the old school way from a console with the startx command. In Debian 11 I had a problem with some GUI applications taking a very long time ...
August Karlstrom's user avatar
1 vote
1 answer
318 views

Are 4755 permissions safe for usr/lib/dbus-1.0/dbus-daemon-launch-helper?

I somehow messed up the permissions of many files on my Ubuntu 22.04.2 LTS system (privately used computer, not a server), which has already caused a couple of problems. Recently, I noticed that I ...
LololoTheGreat's user avatar
0 votes
1 answer
313 views

flatpak , gnome-keyring initial state, Collection login doesn't exist

env is arm64 + Linux penguin 5.15.... aarch64 at upgrade time on pithos app, i needed to install gnome-keyring. Pithos is the FIRST flatpak app running on this new chromebook (dev linux working fine). ...
Robert Rowntree's user avatar
0 votes
0 answers
225 views

Intermittent dbus and/or systemd problem on Rocky Linux 8.7

Occasionally on some of our servers, we seem to be running into a problem that (so far) only a reboot will solve. Symptoms are slow logins and sudo commands. These seem to be related to timeouts on /...
guzzijason's user avatar
4 votes
2 answers
381 views

Open File Explorer on a File that is open by another Application

I use the following script (it is bound to a keyboard shortcut) to open selected file (clicking on a window after using the shortcut) in nemo. What is does is from window id (after clicking on the ...
Ahmad Ismail's user avatar
  • 2,648
0 votes
1 answer
643 views

Browser download location file manager is not using system default file manager

As a bit of background, I'm using Arch Linux with i3 as my window manager and I recently stopped using Nautilus as my default file manager and started using Thunar. The browser I'm using is Brave and ...
BingoKnight's user avatar
0 votes
1 answer
1k views

Setting default file manager and locating a file with the default file manager

Please don't mark it as duplicated before reading my question. I know that there already are those questions, but the existing answer did not work as expected, and that is why I am asking this ...
Damn Vegetables's user avatar
0 votes
0 answers
484 views

export $(dbus-launch) does not work via application or script

I'm working on an embedded linux board running yocto custom distribution (https://github.com/phytec/meta-ampliphy) based on poky. I have 2 C apps running simultaneously and intercom'ing via dbus. ...
ProPlayerMaxUltra's user avatar
4 votes
1 answer
446 views

How do I allow a non-root user to set the timezone via d-bus?

I am writing an application on an embedded Linux device that sets the Timezone as a non-root user. To boil things down to the essence, I want to execute this: dbus-send --system --dest=org....
Edward's user avatar
  • 145
1 vote
2 answers
2k views

RedHat: How to update systemd and dbus without reboot?

This question is about RedHat 7/8/9 alike. After applying most updates, it is enough to restart the affected services. RedHat provides the tracer tool to identify exactly what needs to be rebooted. It ...
Kevin Keane's user avatar
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 ...
Hongwei Lu's user avatar
1 vote
1 answer
253 views

How to retrieve the exit-code from a transient systemd unit using the gdbus utility

From within a Docker container I'm able to create a transient systemd unit in the host Linux OS to run a script. The script returns exit 0 on success, exit 1 on failure. The script below creates the ...
bit_flip's user avatar
0 votes
1 answer
315 views

Can't disable systemd user timer, Unknown method DisableUnitFilesWithFlagsAndInstallInfo

I have a simple systemd service and timer under ~/.config/systemd/user for building nightly images of my favorite program: # ~/.config/systemd/user/kicad-build.service [Unit] Description=KiCAD nightly ...
Gnarflord's user avatar
0 votes
1 answer
543 views

Docker rootless daemon not starting

I installed docker rootless with dockerd-rootless-setuptool.sh install to rhel 7.9. The info of the output is below. [INFO] systemd not detected, dockerd-rootless.sh needs to be started manually: When ...
G.Baysec's user avatar
1 vote
1 answer
326 views

Bridge dbus service to another bus

This is the situation: I have NetworkManager running on the host system. I have systemd and dbus running in a privileged Docker container. I want nmcli in the container to access the NetworkManager ...
Christian Stewart's user avatar
0 votes
1 answer
367 views

How to make Linux system recognizes /dev/sda1 as /dev/sdb1

I am not asking about mounting. I boot Linux OS from a USB flash drive (/dev/sda) in a PC that doesn't have other disks. The /dev/sda includes linux OS and many partitions. /dev/sda1: storage ...
S-K's user avatar
  • 1
0 votes
1 answer
506 views

How to adjust the output of dbus-monitor?

I'm building a microservices application using the GNU tools and bash and I decided to use dbus-monitor and dbus-send for IPC between services. The problem is that it's hard to make use of the ...
CyberWizard's user avatar
0 votes
1 answer
81 views

How can I prevent normal users from being able to look up other logged-in users?

For security and privacy reasons, I want to stop logging logins, as well as hiding information about currently logged-in users. So far, I tried revoking reading permissions to utmp and wtmp: sudo ...
kylex's user avatar
  • 15
0 votes
0 answers
629 views

Run systemd service with root access in the user session

I am creating a systemd service that sends a desktop notification via org.freedesktop.Notifications dbus target whenever a high priority event is logged. To do so, I run journalctl as root and process ...
gfaster's user avatar
  • 27
1 vote
0 answers
234 views

Dbus not starting on Ubuntu Touch

systemctl --user start dbus Failed to start dbus.service: Process org.freedesktop.systemd1 exited with status 1 See user logs and 'systemctl --user status dbus.service' for details. systemctl --user ...
eacelmar's user avatar
4 votes
2 answers
184 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 ...
Aritz's user avatar
  • 123
0 votes
0 answers
503 views

dbus/systemd on a headless server

I would like to experiment with systemd (systemctl --user) to start and stop a big application. The server where it will run is headless. I have tried in a first terminal: dbus-daemon --session --...
BOC's user avatar
  • 221
5 votes
1 answer
196 views

Two programs want a d-bus service - how can I run them both?

I had the following setup: For my screensaver, I used xscreensaver (because it's beautiful) To lock my screen, I used light-locker (because it's more secure then xscreensaver) Recenctly, ...
ixolius's user avatar
  • 157
0 votes
0 answers
308 views

interpreting xsession-errors log after xrdp disconnection

I am trying to understand why my xrdp drops immediately upon connection. The ~/.xsession-errors log showed this. dbus-update-activation-environment: error: unable to connect to D-Bus: /usr/bin/dbus-...
user545463's user avatar
0 votes
1 answer
1k views

Why does my program with d-bus access to systemd to start and stop services end in permission error on a multi user embedded system

I am using an embedded system that has multiple users like 'root' and 'user1'. I am running a c++ binary logged in as 'user1' and It fails to start / stop a service with a permission error. The same ...
preetam's user avatar
  • 117
0 votes
1 answer
251 views

How to detect VLC inhibit on DBUS

I am trying to detect whether the screensaver is inhibited, using xfce on Arch. This command works when chrome (chromium) Inhibits: dbus-send --print-reply=literal --type=method_call --dest=org....
gabor.zed's user avatar
  • 157
0 votes
1 answer
792 views

How do I add another dbus service file search directory?

I've built an application which defines a dbus service. I've installed the app under /opt/myapp, and I now have a file named /opt/myapp/share/dbus-1/services/whatever.MyApp.service . Now, I suppose if ...
einpoklum's user avatar
  • 9,442
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 ...
drkwood's user avatar
  • 21

1
2 3 4 5
7