Skip to content

Commit

Permalink
removed logger statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bugabinga committed Jan 22, 2017
1 parent b4b421d commit 5af0ba6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/batify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ if [ -z "${xuser}" ]; then
exit 1
fi

echo "----------------------------" >> batify_log
echo "user $xuser" >> batify_log
echo "tty $xtty" >> batify_log

xpids=$(pgrep Xorg)
if [ -n "${xpids}" ]; then
xdisplay=$(ps -o command -p "${xpids}" | grep " vt${xtty:3:${#tty}}" | \
Expand All @@ -47,8 +43,6 @@ if [ -z "${xdisplay}" ]; then
fi
fi

echo "display $xdisplay" >> batify_log

for pid in $(ps -u "${xuser}" -o pid --no-headers); do
env="/proc/${pid}/environ"
display=$(grep -z "^DISPLAY=" "${env}" | tr -d '\0' | cut -d '=' -f 2)
Expand Down Expand Up @@ -105,11 +99,6 @@ fi

icon_path="${ICON_DIR}/${icon}.png"

echo "dbus $dbus" >> batify_log
echo "ntf_lvl $ntf_lvl" >> batify_log
echo "icon path $icon_path" >> batify_log
echo "ntf_msg $ntf_msg" >> batify_log

DBUS_SESSION_BUS_ADDRESS=${dbus} DISPLAY=${xdisplay} XAUTHORITY=${xauth} \
"${su_path}" "${xuser}" -c \
"/usr/bin/notify-send --hint=int:transient:1 -u ${ntf_lvl} -i \"${icon_path}\" \"${ntf_msg}\""

0 comments on commit 5af0ba6

Please sign in to comment.