История изменений
Исправление Darth_Revan, (текущая версия) :
Ну тогда про такую магию:
#!/bin/sh
cd $(dirname "$0")
for COUNTER in chromium chromium-browser google-chrome; do
if ( which "$COUNTER" > /dev/null ); then
BROWSER="$COUNTER"
ARGS='--app='
break
fi
done
if [ -z "$BROWSER" ]; then
for COUNTER in firefox iceweasel abrowser; do
if ( which "$COUNTER" > /dev/null ); then
BROWSER="$COUNTER"
ARGS='-new-window '
break
fi
done
fi
if [ -z "$BROWSER" ]; then
BROWSER="x-www-browser"
ARGS=' '
break
fi
exec "$BROWSER" $ARGS"file://$PWD/data/Incredipede.html" "$@"
Исходная версия Darth_Revan, :
Ну тогда про такую магию:
#!/bin/sh
cd $(dirname "$0")
for COUNTER in chromium chromium-browser google-chrome; do
if ( which "$COUNTER" > /dev/null ); then
BROWSER="$COUNTER"
ARGS="--app="
break
fi
done
if [ -z "$BROWSER" ]; then
for COUNTER in firefox iceweasel abrowser; do
if ( which "$COUNTER" > /dev/null ); then
BROWSER="$COUNTER"
ARGS="-new-window "
break
fi
done
fi
if [ -z "$BROWSER" ]; then
BROWSER="x-www-browser"
ARGS=" "
break
fi
exec "$BROWSER" $ARGS"file://$PWD/data/Incredipede.html" "$@"