From 764f9cf6225b939050b2d8e70a87ef856aba22bb Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 18 Oct 2021 15:16:13 +0300 Subject: epub_lander: maybe notify \w cron --- .local/bin/epub_lander | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.local/bin/epub_lander') diff --git a/.local/bin/epub_lander b/.local/bin/epub_lander index 3179649..801381a 100755 --- a/.local/bin/epub_lander +++ b/.local/bin/epub_lander @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# Required to display notifications if run as a cronjob: +export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus +export DISPLAY=:0.0 + mv $HOME/down/*.epub $HOME/docs/epub_landing/ if [[ $? -ne 1 ]]; then -- cgit v1.2.3-70-g09d2