Questions tagged [dbus]

73 questions
36
votes
8 answers

systemctl --user Failed to connect to bus: No such file or directory Debian 9

When I run this commande in my Debian 9 VPS : systemctl --user I have this following error : Failed to connect to bus: No such file or directory This error appear on all users except the user root. I already have the dbus dbus-user-session systemd…
23
votes
5 answers

Updating screen session environment variables to reflect new graphical login?

I use linux, and I like to do all my command-line work within a single screen session, so that I can restart my graphical login and such without losing my terminals. However, when I log out and back into my graphical session, this changes all my…
20
votes
1 answer

How to use headless Skype over DBUS on Debian

I installed Skype on Debian and ran it headless, however, I cannot interact with it over dbus. Some context of what I have so far: Installed Debian 6 on VMware fusion box from netinst CD Skype version is 2.2.0.25 dynamic DBus version is 1.2.24,…
Priit
  • 301
14
votes
7 answers

Custom hotkey/shortcut to open/bring to front an app

I don't imagine this is built into the system, but is it possible to do it without too much hassle? Say I open a specific program with a hotkey, and when I press that hotkey again, the program window is brought to the front. I want to do this on…
Ivan
  • 4,679
11
votes
1 answer

Ubuntu 15.04: suspend from console without sudo

For years I have been able to suspend my Ubuntu-based machine from regular account using dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend This no longer works in Ubuntu 15.04,…
narthi
  • 213
8
votes
5 answers

Is there a DBus command to toggle auto-hide on a KDE Plasma panel?

Is there a DBus command (or some other way from the command line) to toggle auto-hide on a panel in KDE Plasma? (I'm running KDE 4.6.) I have a game I run in WINE that doesn't work right if it's autohidden and it would be nice to run it from a…
Patches
  • 16,572
7
votes
1 answer

Where can I find a full list of wpa-* options for the interfaces file?

I'm looking for an exhaustive list of wpa-* options that can be used in the /etc/network/interfaces file. The Debian wiki has a how-to-use page here: https://wiki.debian.org/WiFi/HowToUse, which refers to /usr/share/doc/wpasupplicant/README.modes.gz…
MatthewD
  • 343
6
votes
2 answers

Use dconf (or comparable) to set configs for another user

On Ubuntu Desktop 13.10, I have a setup script which runs as root. It essentially configures the computer as necessary, but I need to set some things with dconf. The script runs in a Terminal window under a regular user with sudo. I need to run the…
6
votes
3 answers

Use MPRIS/dbus media commands within Firefox on Linux

Back on Windows, I was able to play/pause youtube videos within firefox using the media buttons on my keyboard. On Linux I am really missing this ability. Is there any way I can send MPRIS commands to Firefox on Linux (gnome)? It doesn't have to…
confetti
  • 2,605
6
votes
0 answers

systemctl debian 8 jessie: Failed to get D-Bus connection: Unknown error -1

Unfortunately, in my Debian 8 jessie systemctl does not work at all. Every systemctl command results in: Failed to get D-Bus connection: Unknown error -1 systecmtl status udev Failed to get D-Bus connection: Unknown error -1 How can I fix it? I…
Ivan
  • 291
6
votes
2 answers

How to reliably attach to session DBUS over ssh?

I hardly had any success using a dbus-dependent tool over ssh (for example pactl -- pulseaudio command line interface -- that selects audio output). I know how to manually export the session's DBUS address to DBUS_SESSION_BUS_ADDRESS, but still…
dronus
  • 1,978
5
votes
1 answer

Linking to a chat room via XMPP: URI

I found out how to link directly to a chat room on a Jabber conference server -- it took a bit of digging, and I wound up actually looking at the spec before I was sure I was doing it right. I confirmed here, so I'm pretty sure I've got it. The…
Coderer
  • 1,700
4
votes
0 answers

How to start dbus on Docker/Linux? Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory

I am running puppeteer through Node.js in Docker and was getting this error after not doing anything with dbus: puppeteer:browsers:launcher Launching /usr/bin/google-chrome --allow-pre-commit-input --disable-background-networking…
Lance Pollard
  • 467
  • 5
  • 24
4
votes
0 answers

dbus-monitoring loop exits automatically

I'm trying to execute a bash command on screen lock/unlock. Following tutorials & StackExchange questions, I came up with the following code: #!/bin/bash while true; then #added to try to solve the issue, but alas it did not dbus-monitor…
4
votes
1 answer

How to auto-rotate the screen using Yoga 900's accelerometer?

The Yoga 900 has an accelerometer which should allow auto-rotation behavior. On installing https://github.com/hadess/iio-sensor-proxy (Linux*, LightDM) it is possible to run monitor-sensor. ➜ ~ monitor-sensor Waiting for iio-sensor-proxy to…
1
2 3 4 5