diff options
Diffstat (limited to 'bin/midori-display')
-rwxr-xr-x | bin/midori-display | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/midori-display b/bin/midori-display index 7204f6c..f54056b 100755 --- a/bin/midori-display +++ b/bin/midori-display @@ -234,7 +234,7 @@ function midori_loop { ( while [ -e "$session_lock" ]; do sleep 1 - if [ `xprintidle` -gt $(($INACTIVITY_INTERVAL*1000)) ]; then + if [ `xprintidle 2>/dev/null || echo 0` -gt $(($INACTIVITY_INTERVAL*1000)) ]; then echo -n "RESTART" > $midori_lock $OUTPUT "INFO: Triggering browser restart, too much idling around..." # reset X11 idle counter by some harmless key event |