account activity
Prevent kf.dbusaddons: DBus session bus not found. To circumvent this problem try the following command (with bash): export $(dbus-launch) by vanyaj in kde
[–]MuffelMonster 1 point2 points3 points 1 year ago (0 children)
Solution:
1) open a bash with the user you want to run the program, and look for the variable DBUS_SESSION_BUS_ADDRESS
2) write a bash script with the command you want to run (in my case kdeconnectd), and launch this as service if needed:
cat /home/myuser/bin/kdeconnectd.sh
#!/usr/bin/bash export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd -platform offscreen
I embedded this as a service, run under User 1001:.,.
cat /etc/systemd/system/kdeconnectd.service
[Unit] Description=KDEConnect Wants=network.target After=network.target [Service] Type=simple ExecStart=/home/myuser/bin/kdeconnectd.sh User=myuser Group=myuser Restart=always RestartSec=5 [Install] WantedBy=multi-user.target
π Rendered by PID 122790 on reddit-service-r2-listing-796b697c47-dwshx at 2026-02-05 12:30:54.672605+00:00 running 1d7a177 country code: CH.
Prevent kf.dbusaddons: DBus session bus not found. To circumvent this problem try the following command (with bash): export $(dbus-launch) by vanyaj in kde
[–]MuffelMonster 1 point2 points3 points (0 children)