Questions tagged [d-bus]

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

5
votes
0answers
370 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-...
4
votes
0answers
865 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 ...
4
votes
0answers
761 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
0answers
450 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
214 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
0answers
635 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
0answers
790 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 ...
3
votes
0answers
2k 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
0answers
428 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 ...
3
votes
0answers
727 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 ...
3
votes
0answers
195 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?
2
votes
0answers
441 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':...
2
votes
0answers
32 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
0answers
74 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
60 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
0answers
537 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, ...
2
votes
0answers
142 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
0answers
97 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 ...
2
votes
0answers
478 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 ...
2
votes
0answers
353 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 ...
2
votes
0answers
560 views

UNIX sockets vs AF_NETLINK vs Kdbus vs Binder

What are essential differences between those IPCs? Which are main use cases? Is there some consolidated comparison table between them somewhere? Something like: Protocol: AF_UNIX | ...
2
votes
0answers
567 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/...
1
vote
0answers
33 views

Detect current desktop environment from outside the session

I am working on code so a BOINC client can detect the desktop environment used by the user (mainly GNOME, KDE Plasma, XFCE, LXDE/LXQT). This feature will be needed for various reason that are off ...
1
vote
0answers
29 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 ...
1
vote
0answers
66 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 ...
1
vote
0answers
58 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
0answers
64 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
310 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....
1
vote
0answers
163 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
403 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 ...
1
vote
0answers
54 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....
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 ...
1
vote
0answers
53 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 ...
1
vote
0answers
460 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 ...
1
vote
0answers
237 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 ...
1
vote
0answers
25 views

system service to user service information flow

I'm trying to abstract away some /dev/input files so that user-level systems can know when the touchscreen is being used vs. when the touchpad is being used (without having access to raw mouse data). ...
1
vote
0answers
101 views

Linux Mint Debian: Apparently benign error message with aptitude

When I use aptitude or apt-get at the command line to update/install or upgrade (sudo aptitude update/sudo aptitude install) I get the following error message Error: GDBus.Error:org.freedesktop.DBus....
1
vote
0answers
520 views

Strange error in logs: send_done_cb: No such interface 'org.gtk.vfs.Enumerator' on object at path etc

I recently installed Linux Mint 18.1. My system seems to be working fine, but for the last several hours I've been seeing /var/log/syslog lines such as the following: Dec 30 16:18:04 myhost dbus[848]:...
1
vote
0answers
33 views

DBus memory build up

I'm using dbus commands to control Spotify, but over time I'm noticing memory buildup. I was using htop to check out what is happening, and I noticed a process called xfce4-notifyd taking up a LOT of ...
1
vote
0answers
66 views

Dbus: Terminate not working on other user

I'm new with dbus(Using Ubuntu 14.04, Unity). So I'm logged with user A, create process as user B and that process creates session for user B, now I want to use dbus messages to shut down session from ...
1
vote
0answers
127 views

Can we run two system dbus processes of different version?

I have two installations of gtk and dbus: The default system installation of version which is not supported for meld. Shared installation of version that supports meld and for use across different ...
1
vote
0answers
675 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 ...
1
vote
0answers
547 views

I want to see the list of all dbus interfaces with a command in terminal .h

I know how to get the list of all services in dbus but then I want to see the list of interfaces inside each service. dbus-send --session \ --dest=org.freedesktop.DBus \ --type=...
1
vote
0answers
228 views

Run a script on a failed screen unlock attempt

I want to run a script in Python to detect when a user tries to unlock the screen, but fails. I use elementary OS Freya and light-lock. I tried it with dbus, but I couldn't figure out how to do it. ...
1
vote
0answers
51 views

gentoo xfce auth problem

When i launch xfce on normla user: with consolekit and dbus i have all shutdown,reboo,suspend etc buttons but the are grey inactive. Without consolekit and dbus I can shutdown but ther are no susupend ...
1
vote
0answers
658 views

(virt-manager:4796): Client failed to connect to the D-BUS daemon / Unable to connect to libvirt

I would like to boot and run Windows 8 with kvm or xen while I'm running Debian Wheezy. Actually I have installed Windows 8 on the external USB disk and Debian Wheezy on the hard disk sata. I'm tryng ...
1
vote
0answers
927 views

Guide how to configure D-Bus safely?

Recently I have tried to improve the safety/security of my system by using Linux Security Modules LSM like (apparmor, grsecurity or NSA Selinux). In my case apparmor. Trying to limit untrusted ...
1
vote
0answers
345 views

DBUS interface to decrypt a LUKS device?

In modern DEs, like KDE or XFCE, you can mount a LUKS device after entering the password. Now I want to do this without the file manager, with two steps, Decrypt the device Mount the disk with ...
1
vote
0answers
2k views

Fedora Failed to get D-Bus connection

I have a VPS with fedora 16 installed. I have setup mysql and it was working a couple of days ago. Now suddenly when I try to start mysql I get the error: Failed to get D-Bus connection: Failed to ...
0
votes
0answers
21 views

Dbus issues unable to connect

I am trying to restart httpd but getting below error $ systemctl restart httpd Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, ...