autostart

This commit is contained in:
j 2016-04-14 12:57:45 +02:00
commit 0551a18cc9
6 changed files with 69 additions and 10 deletions

13
ctl
View file

@ -150,6 +150,19 @@ if [ "$1" == "open" ]; then
fi
exit 0
fi
if [ "$1" == "autostart" ]; then
if [ $SYSTEM == "Darwin" ]; then
open "/Applications/Open Media Library.app" --args --autostart
fi
if [ $SYSTEM == "Linux" ]; then
if [ ! -e "$PID" ]; then
python3 "$NAME/oml/gtkstatus.py" --autostart
exit $?
fi
fi
exit 0
fi
if [ "$1" == "ui" ]; then
shift
python3 "$NAME/oml/ui.py" $@