From 3719a80f5da67aa2b42892d014f5248a9c722ac9 Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Tue, 18 May 2021 20:07:14 +0700 Subject: [PATCH] Set DBUS_SESSION_BUS_ADDRESS to disabled when it's not set. --- src/archbox | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/archbox b/src/archbox index 68d2f46..351fd74 100644 --- a/src/archbox +++ b/src/archbox @@ -34,8 +34,7 @@ storeenv() { command -v xhost >/dev/null 2>&1 && xhost +local: > /dev/null printf "%s\n" "DISPLAY=${DISPLAY}" >> /tmp/archbox_env fi - [ ! -z $DBUS_SESSION_BUS_ADDRESS ] && eval "$(dbus-launch)" - printf "%s\n" "DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS}" >> /tmp/archbox_env + printf "%s\n" "DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS:-disabled:}" >> /tmp/archbox_env printf "%s\n" "XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/tmp}" >> /tmp/archbox_env }