dbus: fix dbus-run-session command

Specifically, inform the command about the absolute path of
dbus-daemon. Otherwise it will try running dbus-daemon from PATH,
which may not always work.

PR #3405

(cherry picked from commit 02c0546033)
This commit is contained in:
Nick Cao 2022-11-10 16:51:27 +08:00 committed by Robert Helgesson
parent 73dbcfbca6
commit e891b060e7
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -102,7 +102,7 @@ in {
if [[ -v DBUS_SESSION_BUS_ADDRESS ]]; then if [[ -v DBUS_SESSION_BUS_ADDRESS ]]; then
export DCONF_DBUS_RUN_SESSION="" export DCONF_DBUS_RUN_SESSION=""
else else
export DCONF_DBUS_RUN_SESSION="${pkgs.dbus}/bin/dbus-run-session" export DCONF_DBUS_RUN_SESSION="${pkgs.dbus}/bin/dbus-run-session --dbus-daemon=${pkgs.dbus}/bin/dbus-daemon"
fi fi
if [[ -v oldGenPath ]]; then if [[ -v oldGenPath ]]; then