From f4c755333916f55b9125e66d1a79e979190357e6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 4 Jun 2018 01:16:14 +0000 Subject: .xsessionrc: use ~/.dbus.sh instead of ~/.dbus/Xdbus --- %HOME%/.xsessionrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '%HOME%/.xsessionrc') diff --git a/%HOME%/.xsessionrc b/%HOME%/.xsessionrc index ebf62d1..6ee3124 100644 --- a/%HOME%/.xsessionrc +++ b/%HOME%/.xsessionrc @@ -2,9 +2,9 @@ # This is a workaround to make notify-send inside cron jobs work. # Thanks to this dude: https://unix.stackexchange.com/a/111190/60124 -# Then you source ~/.dbus/Xdbus inside your cron job, and voilĂ ! -touch "$HOME/.dbus/Xdbus" \ - && chmod 0600 "$HOME/.dbus/Xdbus" \ +# Then you source ~/.dbus.sh inside your cron job, and voilĂ ! +touch -- "$HOME/.dbus.sh" \ + && chmod 0600 -- "$HOME/.dbus.sh" \ && [ -n "${DBUS_SESSION_BUS_ADDRESS+x}" ] \ && command -v printf > /dev/null 2>&1 \ - && printf -- 'export DBUS_SESSION_BUS_ADDRESS=%q\n' "$DBUS_SESSION_BUS_ADDRESS" > "$HOME/.dbus/Xdbus" + && printf -- 'export DBUS_SESSION_BUS_ADDRESS=%q\n' "$DBUS_SESSION_BUS_ADDRESS" > "$HOME/.dbus.sh" -- cgit v1.2.3