summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/impressive-display11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/impressive-display b/bin/impressive-display
index 3a786e4..4eb9f34 100755
--- a/bin/impressive-display
+++ b/bin/impressive-display
@@ -112,8 +112,7 @@ impressive_lock="$workdir/.impressive-lock"
# provide pulseaudio support in the browser session, if not
# already available...
-#if ! pacmd stat 1>/dev/null 2>/dev/null; then
-if ! pacmd stat; then
+if ! pacmd stat 1>/dev/null 2>/dev/null; then
if [ "x$WITH_PULSEAUDIO" = "xyes" ]; then
if which pulseaudio 1>/dev/null; then
pulseaudio -D -n \
@@ -126,14 +125,14 @@ fi
# launch matchbox manager
if ! wmctrl -m 1>/dev/null 2>/dev/null; then
if which matchbox-window-manager 1>/dev/null; then
- matchbox-window-manager &
+ matchbox-window-manager 1>/dev/null 2>/dev/null&
fi
fi
# use unclutter to hide idle mouse pointers
if [ "x$HIDE_IDLE_POINTER" = "xyes" ]; then
if which unclutter 1>/dev/null; then
- unclutter &
+ unclutter 1>/dev/null 2>/dev/null &
fi
fi
@@ -219,7 +218,7 @@ function pdf_is_portrait {
echo "PAGE_IS_LANDSCAPE"
break
fi
- done | tail -n1 | grep -E ".*PAGE_IS_LANDSCAPE.*" && return 1
+ done | tail -n1 | grep -q -E ".*PAGE_IS_LANDSCAPE.*" && return 1
return 0
else
# something went wrong with the provided file name...
@@ -397,7 +396,7 @@ function reloadable_impressive {
while [ -e "$session_lock" ]; do
- impressive ${IMPRESSIVE_OPTIONS} --fake-fullscreen --wrap -a ${SLIDE_DURATION} --nologo "${pdffile_display}" 1>/dev/null &
+ impressive ${IMPRESSIVE_OPTIONS} --fake-fullscreen --wrap -a ${SLIDE_DURATION} --nologo "${pdffile_display}" 1>/dev/null 2>/dev/null &
impressive_pid=$!
echo -n "$impressive_pid" > "$impressive_lock"