Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [d-bus]

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

2
votes
1answer
1k views

“error constructing proxy…” when trying to launch gnome-terminal as root

openSUSE Leap 42.2 Gnome Terminal 3.20.2 I have a terminal window open. If I type the following command: gnome-terminal as a non-root user it successfully launches a new terminal. However if I run ...
31
votes
2answers
12k views

It is OK to change /etc/machine-id?

I cloned a disk (SSD) and put the cloned disk into another machine. Now both systems have the same value in /etc/machine-id. Is it any problem to simply edit /etc/machine-id to change the value? Can I ...
62
votes
4answers
48k views

A list of available DBus services

Is there such a thing as list of available DBus services? I've stumbled upon a few (like those provided by NetworkManager, Rhythmbox, Skype, HAL). I wonder if I can find a rather complete list of ...
2
votes
2answers
6k views

Failed to get D-Bus connection: No such file or directory. $XDG_RUNTIME_DIR not set. libpam-systemd installed

I installed Yunohost on a LIME2 like I did with my Pi3 and now I have the same error as two months (see "Cannot enable user service. “Failed to get D-Bus connection: Connection refused” Support"), ...
2
votes
1answer
4k views

Debian and Systemd: breaking ordering cycle error [closed]

I'm a new embedded developer I'm trying to make systemd 37 work with freescale vybrid board (A5 and M4) running on linux-3.0 After boot with some breaking ordering cycle error, I check with ps ax ...
19
votes
1answer
5k views

Reuse D-Bus sessions across login sessions

I access a machine through multiple login sessions. The sessions' lifetimes may or may not overlap. In my case, these login sessions are currently always over SSH, but I would prefer to handle local ...
13
votes
1answer
7k views

D-Bus authentication and authorization

I'm trying to set up remote access to D-Bus, and I don't understand how authentication and authorization are (not) working. I have a D-Bus server listening on an abstract socket. $ echo $...
10
votes
2answers
10k views

Gnome programs (eog/gnome-terminal) have a slow start and produce a DBus.Error.NoReply Warning

For some time, eog and gnome-terminal are starting very slowly on my (X)Ubuntu 13.10. I think other Gnome tools are affected too, but I don't use any others. Now I get a org.freedesktop.DBus.Error....
9
votes
1answer
8k views

User systemd PulseAudio service

Not much else to this question: I would like to know what I need to create a PulseAudio systemd service to be run with systemd --user. I've tried a few different things, including various user ...
8
votes
6answers
21k views

Why can't I run Gnome apps over remote SSH session?

Logging into a remote host using ssh -X me@host, I successfully run gnome-terminal -e "tail -F /var/log/file" &. When I log off and then try the same thing the next day, I get this: Failed to ...
4
votes
1answer
2k views

Universal way to logout from terminal via dbus

I'm new with dbus, and saw different ways to log out from terminal depending on desktop env. But I'm curious is there any way to log out from any desktop env using dbus messages? On GNOME: dbus-send ...
0
votes
3answers
3k views

Starting A DBus Session Application from systemd User Mode

I have a simple need to run a systemd user service with access to all of the environment variables provided by the user DBus session. Here's my example unit: [Unit] Description=Environment Demo [...
17
votes
5answers
8k views

Run a dbus program in crontab , how to know about the SESSION id?

I need to run some program within crontab , but how can the program know about dbus session id ? it's only available for programs launched by session managers.
15
votes
4answers
13k views

How to list all object paths under a dbus service?

This is a follow-up question to A list of available DBus services. The following python code will list all available DBus services. import dbus for service in dbus.SystemBus().list_names(): ...
6
votes
1answer
6k views

How dbus calculates machine id?

How DBus calculates machine id? (/etc/machine-id, /var/lib/dbus/machine-id). Which way is more correct to determine it?
2
votes
1answer
11k views

Failed to get bus connection: Could not connect: Connection refused

When I'm running evince file.pdf I got this error Failed to get bus connection: Could not connect: Connection refused Ubuntu 12.04 I have to reboot. Can I repair this error without reboot?
16
votes
1answer
2k views

Why do I need dbus?

I recently removed dbus from my system (along with consolekit and polkit). I didn't notice any change (I was running it as system daemon and per-user from .xinitrc). However, many people claim that ...
4
votes
1answer
649 views

How to modify a dbus service's “Exec” line without losing the changes in case of upgrade

I'm facing a ugly problem with my system. my login manager (LightDM) is starting gnome-keyring-daemon at login successfully and unlocking my keyring as it should (EDIT: Everything via PAM). The thing ...
0
votes
1answer
1k views

Could not start D-bus, can you call qdbus?

I am using fedora 22. Yesterday it was working fine. But when I opened it today after entering my password it says "could not start D-bus, can you call qdbus?" When I searched for the solution in ...
8
votes
1answer
4k views

Determine DBUS_SESSION_BUS_ADDRESS from outside the X session

I've got mate-screensaver installed on a machine running Linux Mint 16. On that machine, I can open up a terminal and query the state of the screensaver: dan@box1 ~ $ echo $DISPLAY :0.0 dan@box1 ~ $ ...
4
votes
3answers
4k views

How do I shut down a system through a ConsoleKit DBus message as user?

I found the following command line to shut down a Debian/GNU Linux system dbus-send \ --system \ --dest=org.freedesktop.ConsoleKit \ --type=method_call \ --print-reply \ --reply-timeout=...
4
votes
2answers
3k views

How to create a daemon which would be listening to dbus and fire script on message

I want to create a daemon, which would fire up a shell script in the background every time I unlock the screen on my ubuntu. I managed to create such script according to answer to related question: ...
4
votes
1answer
7k views

How to start dbus with a fixed address?

The issue concerns the same thing which is described here and here, but I don't see a clear solution there. I mean I have the same error: Failed to connect to socket /tmp/dbus-CwQMg2RxWx: Connection ...
2
votes
1answer
1k views

nmcli freedesktop DBus warnings and errors

As soon as I do nmcli con up id <ESSID>, I experience some warnings/errors: ** (process:4841): WARNING **: async_got_type: could not read properties for /org/freedesktop/NetworkManager/...
1
vote
0answers
34 views

How to react to laptop lid events? [duplicate]

I have a Fedora 26 Lenovo laptop, which means I have a little trackpoint nub for pointer motion as well as the trackpad. By default, the pointer motion is sluggish. So I have a job that sets some ...
1
vote
2answers
2k views

How to start SPSS-statistics 23 in Debian?

I installed the university licence in Debian 8.5 but did not configure any paths and forgot what is the default location. I cannot see in anything in $PATH about the program by searching SPSS. ...
10
votes
1answer
8k views

Cannot enable user service. “Failed to get D-Bus connection: Connection refused” Support

I get this error when running any systemd command as a user: admin@Xroklaus:~ $ systemctl --user list-units Failed to get D-Bus connection: Connection refused Without the user parameter, the command ...
3
votes
0answers
197 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 ...
2
votes
2answers
3k views

dbus-launch and dbus-daemon - what's happening

I grepped the ps output for dbus with the following output: 102 742 0.0 0.0 4044 1480 ? Ss Apr16 27:13 dbus-daemon --system --fork --activation=upstart xralf 2551 0.0 0.0 ...
2
votes
0answers
86 views

Create a notification on the screen initiated by root [duplicate]

I would like to give out a notification on screen by a script that is running by root on Ubuntu 14.04. I tried this: #!/bin/bash MAINUSER=$(cat /etc/passwd|grep 1000|sed "s/:.*$//g") su $MAINUSER -c ...
2
votes
1answer
676 views

Open kickoff via shell/script

Is there any (undocumented) way to open the KDE Kickoff menu via dbus or some similar mechanism?
1
vote
0answers
634 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
154 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
1answer
56 views

Why is my terminal emulator process is using d-bus?

$ sudo lsof +E -a -U -p 1480 lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfsd-fuse file ...
0
votes
0answers
959 views

Failed to get D-Bus connection on systemctl

I'm using Debian 8 server, I want to use systemctl for manage the services but unable to start/stop/status any service using systemctl command, getting below error: # systemctl reload apache2....