2013-06-23 17:35:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
[ -e /usr/bin/omxplayer.bin ] && OMXPLAYER="/usr/bin/omxplayer.bin" || exit 255
|
|
|
|
|
|
|
|
FNTOPT=
|
2013-11-24 23:40:08 +00:00
|
|
|
if [ -e /usr/share/fonts/TTF/FreeSans.ttf ]; then
|
|
|
|
FNTOPT=$FNTOPT" --font /usr/share/fonts/TTF/FreeSans.ttf"
|
|
|
|
fi
|
2013-06-23 17:35:56 +00:00
|
|
|
|
2013-11-24 23:40:08 +00:00
|
|
|
if [ -e /usr/share/fonts/TTF/FreeSansOblique.ttf ]; then
|
|
|
|
FNTOPT=$FNTOPT" --italic-font /usr/share/fonts/TTF/FreeSansOblique.ttf"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
|
|
|
eval $(dbus-launch --sh-syntax)
|
|
|
|
fi
|
2013-06-23 17:35:56 +00:00
|
|
|
|
|
|
|
[ $# = 0 ] && exec $OMXPLAYER --help || \
|
|
|
|
[ "$1" = '-h' -o "$1" = '--help' ] && exec $OMXPLAYER --help || \
|
2013-11-24 23:40:08 +00:00
|
|
|
clear ; exec $OMXPLAYER$FNTOPT "$@" #>/dev/null 2>&1
|