installed_progs.t: Python checks stdout too, 150 ok
[sunny256-utils.git] / okular
blobce65601d144b82593ce3b57c9a088fc111e79c14
1 #!/usr/bin/env bash
3 #=======================================================================
4 # okular
5 # File ID: aaece696-e7e9-11e5-8459-02010e0a6634
7 # Wrapper for okular(1) to get rid of the terminal noise
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #=======================================================================
13 progname=okular
14 VERSION=0.1.0
16 unset file
17 for f in /usr/bin/okular /usr/local/bin/okular; do
18 test -e "$f" && file="$f"
19 done
21 if test -z "$file"; then
22 echo $progname: okular binary not found >&2
23 exit 1
26 "$file" "$@" 2>/dev/null