use gio open if available
This commit is contained in:
parent
216b880151
commit
ee586ee194
2 changed files with 13 additions and 3 deletions
6
ctl
6
ctl
|
|
@ -147,7 +147,11 @@ if [ "$1" == "open" ]; then
|
|||
if [ $SYSTEM == "Linux" ]; then
|
||||
if [ -e "$PID" ]; then
|
||||
if ps -p `cat "$PID"` > /dev/null; then
|
||||
xdg-open "file://${BASE}/openmedialibrary/static/html/load.html"
|
||||
if [ -e /usr/bin/gio ]; then
|
||||
gio open "file://${BASE}/openmedialibrary/static/html/load.html"
|
||||
else
|
||||
xdg-open "file://${BASE}/openmedialibrary/static/html/load.html"
|
||||
fi
|
||||
else
|
||||
$PYTHON "${NAME}/oml/gtkstatus.py" $@
|
||||
exit $?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue