Skip to main content

Questions tagged [dbus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

LXQt shuts down instead of suspend

I've installed Debian Bookworm with LXQt on my old ASUS X205TA notebook. Almost everything works fine except when I press the Fn+Zz button (X86Sleep) bound to "/powermanager/keysuspend", the ...
zc2's user avatar
  • 101
0 votes
0 answers
76 views

How to make sure dconf (or gsettings) and <guix>/dconf-editor use the same backend database

Disclaimer: I'm running Guix package manager as a user on Ubuntu 22.04.4. That is most likely part of the problem: Guix uses non traditional paths for packages and sets symlinks and various search-...
Necto's user avatar
  • 101
0 votes
0 answers
2k views

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 --...
Lance's user avatar
  • 387
1 vote
1 answer
73 views

Runing a command as user is not the same as logging as the user and running the command

I am trying to get a way to execute a script from a root session, but I am having some trouble with it. I'll lay out the issue: I have a script that performs some tasks as the regular user 'kolterdyx',...
Ciro García's user avatar
1 vote
1 answer
232 views

start non-root user systemd and systemd services via sudo without enable-linger

I'm like to be able to start a systemd session (e.g. systemd --user) for a given non-root user, and subsequently start a service (e.g. systemctl --user start SERVICE.service), all via a sudo -iu USER ...
crimson-egret's user avatar
0 votes
1 answer
104 views

How to get access to run a D-Bus method?

When I run this command to run the org.gnome.Shell.Introspect's GetWindows() method: dbus-send --session \ --print-reply \ --dest=org.gnome.Shell.Introspect \ /org/gnome/...
eminfedar's user avatar
  • 103
0 votes
1 answer
118 views

Make `busctl` only output `data` (i.e. don't include `type`)

The context The question Additional information The context I know that busctl can be used to get the number of pages of the current document in a Zathura instance. busctl --user get-property org....
Rodrigo Morales's user avatar
1 vote
0 answers
595 views

Prevent kf.dbusaddons: DBus session bus not found. To circumvent this try the following command (with bash): export $(dbus-launch)

To launch GUI applications in kde (plasma) in Ubuntu Jammy I need to first manually do export $(dbus-launch) and then launch the app from this console Otherwise it won't start (saying kf.dbusaddons: ...
EcSbm's user avatar
  • 11
1 vote
0 answers
649 views

I am not able to run 'dbus-launch' into Alpine Linux with Docker 23

This is something that worked correctly with Docker 20, but with the change to Docker 23 it keeps "thinking" infinitely and consuming CPU (i.e. freezes). I simply launch dbus in a Docker ...
Óscar García Amor's user avatar
0 votes
1 answer
3k views

How to debug: Failed to connect to bus: No such file or directory (systemctl --user status)?

I am trying to run systemctl --user status from a user account in order to not run services from root. The way I do it is as follows: loginctl enable-linger $USER export XDG_RUNTIME_DIR="/run/...
Newskooler's user avatar
1 vote
1 answer
835 views

How to get the session dbus to use /run for its socket?

In an X11 session, my session dbus uses /run/user/1000/bus for its socket. When I launch a dbus session in ssh with dbus-launch it creates a socket in /tmp and it seems to be by design as /usr/share/...
allo's user avatar
  • 1,158
0 votes
1 answer
102 views

How to silence output from "dbus-daemon" or "gio mount"

I want to mount a smb share in userspace using gio mount and a kerberos ticket. That works so far. But the dbus-daemon constantly writes out a message on stdout like dbus-daemon[2305]: [session uid=...
Broms's user avatar
  • 1
1 vote
1 answer
2k views

Running standalone window manager without a D-Bus session in Linux

Here is a prehistory for my question, if some more details are needed, the actual question is in the second paragraph. So I have been using standalone window manager for a couple of months on ...
Viaceslavus's user avatar
1 vote
1 answer
2k views

DBus Send from shell

I need to send a method call with DBus from shell when i send this code from shell : dbus-send --print-reply --system --type=method_call \ --dest=vehicle.network.service /Diag \ vehicle.network....
user avatar
2 votes
1 answer
342 views

Use playerctl in systemd-nspawn container

When I launch a web browser in a systemd-nspawn container, playerctl commands don't work to play and pause multimedia, though they work for browsers outside of the container. Is there an environment ...
grandinero's user avatar
1 vote
1 answer
2k views

Apache2 not responding to port 80 IPv4 requests

Have encountered a strange problem where my apache2 daemon although supposedly listening according to netstat and lsof is not responding to requests. Here is what I have found so far. Ensure port 80 ...
tgunr's user avatar
  • 146
1 vote
1 answer
403 views

Running awesome-client (which uses dbus) from acpid

I set up a acpid rule to execute the following command, whenever I receive a specific acpi message: awesome-client "activate_tabletmode()" Where activate_tabletmode() is just some function ...
dj_rydu's user avatar
  • 13
31 votes
8 answers
90k views

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 ...
Alexandre Sandolo's user avatar
3 votes
1 answer
17k views

Connection reset by peer on systemctl as root

I've setup WSL 2 (Ubuntu) and I installed systemd (and systemd-sysv) there. After that, I ran: sudo mkdir -p /run/dbus sudo dbus-daemon --system sudo daemonize /usr/bin/unshare --fork --pid --mount-...
dan1st's user avatar
  • 251
0 votes
1 answer
232 views

Fedora30 upgrade: Cannot run KDE as a specific user

I've upgraded from Fedora 29 to Fedora 30. Alghough root can use KDE normally, I fail to use it as a specific user. An almost black fullscreen window appears with a responsive mouse arrow in the ...
Luis A. Florit's user avatar
2 votes
1 answer
2k views

Talk to Host machine's Dbus through Docker

I have my application that performs certain task with the help of NFS-Ganesha. During this it talks to NFS-Ganesha through DBus. But now I am planning to run NFS-Ganesha on Docker Container. (My ...
Deep Diwani's user avatar
0 votes
1 answer
932 views

Failed to get D-Bus connection: Opération non permise

I'm using a centos 7 OS, I have removed /var/run/dbus/system_bus_socket after i accidently removed the /var/run folder. Now when i'm trying to use systemctl command i'm getting the error mentioned ...
Zied Yazidi's user avatar
1 vote
1 answer
896 views

How do I get .service files for gnome-keyring?

My ultimate goal is to get gnome-keyring functioning as a credential storage for use by shell and python scripts on an RHEL 6 server. The admins installed package gnome-keyring-2.28.2-8.el6_3.x86_64, ...
Azide's user avatar
  • 11
4 votes
0 answers
88 views

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 ...
Silverspur's user avatar
2 votes
1 answer
2k views

Unable to start dunst notification daemon for user

I did a clean arch install with only XDM and i3 to serve as login/window managers. I have also installed dunst package; and according to arch wiki nothing else is required for it to work. However, ...
hjpotter92's user avatar
0 votes
1 answer
2k views

xinit for correct start of awesome wm in Manjaro (xrdp)

Configuration: Hyper-V virtual machine, Generation 1 Manjaro 18.00 with awesome WM xrdp Server installed & running (https://wiki.archlinux.org/index.php/xrdp) Connecting to this VM from a ...
bambino307's user avatar
0 votes
0 answers
236 views

systemd-stdio-bridge and D-Bus errors when trying to execute 'hostnamectl' remotely

Executing hostnamectl command to know host's chassis. Want to write a proper script to run on a certain list of hosts, but having a problem when executing hostnamectl -H. Note! works as expected ...
igor's user avatar
  • 433
6 votes
3 answers
4k views

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 ...
confetti's user avatar
  • 2,505
1 vote
1 answer
791 views

map headset button in gnome3

How can I map in gnome3 the button from my bluetooth headset? Gnome sees a AcceleratorActivated event when I press it: $ dbus-monitor --monitor signal time=1525078944.868498 sender=:1.17 -> ...
Eric's user avatar
  • 156
1 vote
0 answers
8k views

Can't start services, probably policykit error

I can't restart services as root on CentOS. Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any ...
spraff's user avatar
  • 2,208
3 votes
0 answers
137 views

NFS /usr/share breaks Policykit beause of inotify support

I just tried moving some files including /usr/share to a NFS partition to save space when running many similar virtual machines. The configuration mostly works except when starting services I think ...
spraff's user avatar
  • 2,208
4 votes
1 answer
3k views

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. ➜ ~ ...
Anne van Rossum's user avatar
1 vote
0 answers
409 views

lightdm set an wrong DBUS_SESSION_BUS_ADDRESS

I'm using archlinux and lightdm+lightdm-gtk-greeter+aweome as my work environment. I found my DBUS_SESSION_BUS_SESSION is not properly setup, when I enabled lightdm as my login manager.This ...
Hacksign's user avatar
  • 131
1 vote
1 answer
1k views

I want to inhibit the autostart of kwalletd5

I'm not able to find a way to disable the automatic start of kwalletd5 on Fedora 24 with XFCE4. pstree displays: fetchmail firefox─┬─{BgHangManager} ├─{Cache I/O} ├─{Cache2 I/O} ...
Claude Frantz's user avatar
0 votes
1 answer
284 views

How to bind a key to cycle profiles in roxterm?

I'd like to be able to switch profiles in roxterm, without having to access the menu each time. How could this be done?
ideasman42's user avatar
6 votes
0 answers
3k views

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

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 ...
Ivan's user avatar
  • 281
0 votes
1 answer
109 views

Centos: there is no ~/.cache/upstart

I'm new with linux.As I know ~/.cache/upstart is folder where system processes log their stuff. But I can't find this folder in Centos. What I'm most curious about is that on Ubuntu this folder ...
user590536's user avatar
2 votes
1 answer
5k views

Getting error: "Error constructing proxy for org.gnome... Could not connect: Connection refused" when running gnome-terminal

I am getting the error: "Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Could not connect: Connection refused" when I try to run gnome-terminal. I am running CentOS 7. I ...
Rabee's user avatar
  • 123
1 vote
1 answer
6k views

Dbus: How can I monitor process?

I'm new with Dbus and I'm curious if there is any way to monitor process and see if this process receives any Dbus messages. (I'm working on some project and want to know if Xserver receives any Dbus ...
user590536's user avatar
2 votes
1 answer
2k views

Unable to switch to greeter

I'm using LightDM 1.16.5 along with the Awesome window manager on NixOS. After logging in, I am unable to switch users without first logging out of my current session. The command dm-tool switch-to-...
arussell84's user avatar
6 votes
2 answers
8k views

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 ...
dronus's user avatar
  • 1,908
3 votes
0 answers
8k views

DBus over Network (TCP)

I'm trying to communicate with a remote DBus (i.e. IP 10.100.20.101) from a host (i.e. IP 10.100.20.102) - X86_64 platform to ARM development board. I've tried the solutions from here but it caused ...
Toni's user avatar
  • 31
11 votes
1 answer
5k views

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....
narthi's user avatar
  • 213
2 votes
1 answer
1k views

How to update DBUS_SESSION_BUS_ADDRESS in tmux when that address changes?

I have noticed, that I can’t run steam in a tmux pane: it gave me error Error: Unable to open a connection to X. Check your DISPLAY environment variable and make sure that you have enabled X. If ...
tijagi's user avatar
  • 340
0 votes
4 answers
2k views

Trying to run Konsole from XMing (Windows) fails

Connecting from XMing latest running on a Windows 7 laptop to an Ubuntu 14.04 server running KDE. I get the following error: cpatti@hab: ~ $ konsole ...
feoh's user avatar
  • 111
1 vote
0 answers
372 views

Error in D-BUS session in Ubuntu

Hi I get the following error upon starting the xfce4-panel Failed to connect to the D-BUS session bus: Failed to connect to socket However Dbus is running as i checked it in HTOP I get the error in ...
Shenal Silva's user avatar
  • 1,053
1 vote
1 answer
415 views

Is there a DBus command for adding a program start button to a KDE plasma panel?

There was a nice command in KDE3 that allowed my to add a program start button to a kicker panel programmatically: dcop kicker $PANEL addNonKDEAppButton "$PROGRAM_NAME" "$PROGRAM_DESCRIPTION" "$...
Stefan Endrullis's user avatar
1 vote
0 answers
663 views

Notifications don't show up (notify-send notify-osd)

Notifications via notify-send and notify-osd stopped working for me for no apparent reason. notify-send does not display anything. notify-osd displays this error: ** (notify-osd:30409): WARNING **: ...
mehturt's user avatar
  • 103
6 votes
2 answers
4k views

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 ...
Josh The Geek's user avatar
0 votes
1 answer
108 views

monit fails to support dbus session

I am trying to use monit to monitor and automatically issues like crashes, memory leaks and cpu hotspinning. For one application - one that uses DBus (serving and calling funcs) just will not start. ...
drahnr's user avatar
  • 380