diff options
-rwxr-xr-x | bin/impressive-display | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/impressive-display b/bin/impressive-display index 977c4f3..965fc6c 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -83,9 +83,6 @@ IMPRESSIVE_OPTIONS="--transition None" # write some debugging output to stdout when downloading a remote PDF DEBUG_DOWNLOADS="" - -trap "cleanup" SIGINT SIGTERM ERR EXIT - if type -p xrandr 1>/dev/null; then currentOutput=`echo "$(xrandr)" | grep -w 'connected' | sed -r -e 's/connected.*//' | head -n 1` fi @@ -227,6 +224,7 @@ function cleanup { done } +trap "cleanup" SIGINT SIGTERM ERR EXIT function pdf_is_portrait { |