From e891b060e7d11bb8f7dedb86a41d804891a6f5a9 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 10 Nov 2022 16:51:27 +0800 Subject: [PATCH] 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 02c05460339e5239ef6fc83eecea047e7e879704) --- modules/misc/dconf.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/misc/dconf.nix b/modules/misc/dconf.nix index ed502ea5..aaefdfa3 100644 --- a/modules/misc/dconf.nix +++ b/modules/misc/dconf.nix @@ -102,7 +102,7 @@ in { if [[ -v DBUS_SESSION_BUS_ADDRESS ]]; then export DCONF_DBUS_RUN_SESSION="" 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 if [[ -v oldGenPath ]]; then