use gtk status icon and open oml in browser
This commit is contained in:
parent
8a26285c88
commit
58541fa303
2 changed files with 66 additions and 1 deletions
10
ctl
10
ctl
|
|
@ -118,7 +118,15 @@ if [ "$1" == "open" ]; then
|
|||
open "/Applications/Open Media Library.app"
|
||||
fi
|
||||
if [ $SYSTEM == "Linux" ]; then
|
||||
exec python3 "$NAME/oml/gtkwebkit.py" $@
|
||||
if [ -e $PID ]; then
|
||||
if ps -p `cat "$PID"` > /dev/null; then
|
||||
xdg-open "file://${BASE}/openmedialibrary/static/html/load.html"
|
||||
else
|
||||
exec python3 "$NAME/oml/gtkstatus.py" $@
|
||||
fi
|
||||
else
|
||||
exec python3 "$NAME/oml/gtkstatus.py" $@
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue