Skip to main content

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
0 votes
0 answers
8 views

How to get monitor state?

I want to turn off the screen after 10 minutes of inactivity, and 1 minute later, IF the monitor is still off, then lock the screen. I know how to turn the screen off with dbus, how to lock screen, ...
Luis A. Florit's user avatar
0 votes
1 answer
43 views

Singularity on RHEL-8: failed to connect to dbus

I am using Singularity on RHEL-8. I just upgraded to cgroupsv2 so that I could throttle resource usage. I also delegate CPU controller permissions in my /etc/systemd/system/[email protected]/override....
cag51's user avatar
  • 101
1 vote
1 answer
48 views

Set a specific file manager for org.freedesktop.FileManager1.ShowItems

The following command opens a file manager to show the directory. dbus-send --session --dest=org.freedesktop.FileManager1 --print-reply \ --type=method_call /org/freedesktop/FileManager1 \ org....
Damn Vegetables's user avatar
0 votes
1 answer
83 views

How can I access my host system's system (dbus) bus in a Distrobox container?

I'm using Distrobox to develop applications, and currently I'm working on one which interacts with a service running on the system bus. To test for a connection to the system bus and the service I ...
Newbyte's user avatar
  • 1,088
0 votes
1 answer
32 views

Can't do 'dbus-send' from shutdown script, but it works fine at CLI

For some reason my xfce4 refuses to remember my session when I shut down or restart (the correct box is ticked in the 'session and startup' dialogue). The good folks on the xfce forum can't replicate ...
Ray Andrews's user avatar
  • 2,527
0 votes
0 answers
88 views

KDE Plasma/Wayland is unable to lock lockfile /run/user/1000/wayland-0.lock

When running dbus-run-session startplasma-wayland, I see this error constantly reoccuring: dbus-daemon[7000]: [session uid=1000 pid=7000] Activated service 'org.freedesktop.systemd1' failed: Process ...
mikwee's user avatar
  • 1
0 votes
1 answer
14 views

How can I make drop-down xfce4-terminal appear using raw D-Bus calls?

I am running xfce4-terminal in the background in drop-down mode; the terminal window is currently hidden. I am unable to launch xfce4-terminal --drop-down to bring the window up. How can I use a raw ...
user3840170's user avatar
  • 1,844
0 votes
1 answer
94 views

how to start dbus service "org.freedesktop.systemd1"?

After a system upgrade (Ubuntu 22 to 23), dbus service org.freedesktop.systemd1 is broken. $ busctl | grep systemd1 org.freedesktop.systemd1 - - - (activatable) - - - $ busctl tree org....
Martin Monperrus's user avatar
0 votes
0 answers
15 views

How to mock libmm dbus proxy APIs

I am using DBUS proxy call_sync API to read data from DBUS, now I want to add unit tests and I created a mock for that. Here is the code: class MockDBusProxy : public IDBusProxy { public: ...
ashok449's user avatar
0 votes
0 answers
58 views

D-bus monitoring does work from the command line, but not as a systemd service

I wrote a bash script reading SMS messages using the ModemManager, mostly with mmcli. It works fine from the command line, but not when started as a systemd service. I quickly found out that this line ...
VPfB's user avatar
  • 801
0 votes
1 answer
87 views

reboot via dbus-send without interaction?

trying to investigate why handbrake and kodi cannot shutdown or reboot my system, I narrowed the problem down to these "Interactive authentication required" messages: % dbus-send --system --...
Harri's user avatar
  • 23
0 votes
1 answer
15 views

Access denied error when trying to start a GATT server in Jetson Nano

I'm writing a GATT server application using this article as basis. My initial code runs fine on my Linux laptop, but fails on my Jetson Nano (running an nVIDIA-tweaked version of Ubuntu 18.04) with an ...
xperroni's user avatar
  • 101
1 vote
1 answer
171 views

su : connect to another user with D-BUS activated [duplicate]

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
3 votes
2 answers
710 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,677
2 votes
1 answer
58 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
261 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
73 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
134 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
478 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
1 answer
65 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
  • 733
1 vote
1 answer
921 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,441
0 votes
0 answers
41 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
266 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
47 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
69 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
223 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
31 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
61 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
438 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
585 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
  • 29
0 votes
0 answers
255 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
851 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,738
1 vote
1 answer
2k 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
491 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
530 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
355 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
416 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,738
0 votes
1 answer
974 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
2k 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
686 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
657 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
3k 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
2k 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
358 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
433 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
691 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
472 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
466 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
721 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
90 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

1
2 3 4 5
8