From a8e4895b920ee9f4ab0ee1405a27cb9093691fd1 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 8 Feb 2017 16:59:33 -0600 Subject: [PATCH] Added warning when unix:path=/run/user/2000/bus is unset --- .bash_profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 9f589e5..11a43cb 100644 --- a/.bash_profile +++ b/.bash_profile @@ -9,5 +9,8 @@ # (numlock for X is set in ~/.xinitrc) case $(tty) in /dev/tty[0-9]*) setleds -D +num - export USING_TTY=1 ;; + export USING_TTY=1 + # Temporary fix for a systemd bug related to systemd --user timers that run on login + [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]] && printf "%bWARNING: \$DBUS_SESSION_BUS_ADDRESS is unset! %b\n" "$(tput bold)$(tput setab 1)" "$(tput sgr0)" + ;; esac