PKGBUILDs/aur/omxplayer-git/omxplayer.arch

14 lines
391 B
Text
Raw Normal View History

2013-06-23 17:35:56 +00:00
#!/bin/bash
[ -e /usr/bin/omxplayer.bin ] && OMXPLAYER="/usr/bin/omxplayer.bin" || exit 255
FNTOPT=
#OMXFONT=${OMXFONT:-/usr/share/fonts/TTF/FreeSans.ttf}
[ -n "$OMXFONT" -a -e "$OMXFONT" ] && FNTOPT="--font $OMXFONT"
[ $# = 0 ] && exec $OMXPLAYER --help || \
[ "$1" = '-h' -o "$1" = '--help' ] && exec $OMXPLAYER --help || \
clear ; exec $OMXPLAYER $FNTOPT "$@" >/dev/null 2>&1