summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-04-02 01:15:53 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-04-02 01:15:53 +0200
commitb34977bd98ea6af28ba4e7c5f2b6e4bee9f2fa4a (patch)
tree45fdcc357dd730583cd7039ca94dd5478e0f2e72
parente7b2200152c95009292121876a5d5c37f7fbfeec (diff)
downloadimpressive-display-b34977bd98ea6af28ba4e7c5f2b6e4bee9f2fa4a.tar.gz
impressive-display-b34977bd98ea6af28ba4e7c5f2b6e4bee9f2fa4a.tar.bz2
impressive-display-b34977bd98ea6af28ba4e7c5f2b6e4bee9f2fa4a.zip
Make impressive-display script really quiet, so that we avoid writing too much output to .xsession-errors on diskless systems.
-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"