sys-apps/dbus: fix syntax error in profile.d script

Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Anna (navi) Figueiredo Gomes
2025-02-28 14:23:27 +01:00
committed by Sam James
parent bba184c203
commit ae6c976da6
2 changed files with 1 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later
#
if [ -f /run/openrc/softlevel ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]
if [ -f /run/openrc/softlevel ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ] \
&& rc-service --user --exists dbus 2>&1 >/dev/null; then
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
fi