forked from puppylinux-woof-CE/run_woof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppRun
More file actions
executable file
·25 lines (22 loc) · 748 Bytes
/
AppRun
File metadata and controls
executable file
·25 lines (22 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
SCRIPT_PATH="`realpath $0`"
cd "${SCRIPT_PATH%/AppRun}"
# TERMINAL_COMMAND and GTKDIALOG_COMMAND are defined in run_woof.conf
[ ! -f ./run_woof.conf ] && ./edit-config --new
. ./run_woof.conf
# if running in an OS that doesn't have gtkdialog
if [ "$GTKDIALOG_COMMAND" = '' -a "$DISPLAY" != '' ]; then
if [ "$TERMINAL_COMMAND" != '' ]; then
# run run_woof_helper in a terminal
if [ "$TERMINAL_COMMAND" = 'gnome-terminal' ]; then
TERM_CMDLINE="${TERMINAL_COMMAND} --"
else
TERM_CMDLINE="${TERMINAL_COMMAND} -e"
fi
$TERM_CMDLINE sh -c "./run_woof_helper ; echo 'Press <Enter> to continue' ; read VAR"
else
echo "Please run ./run_woof_helper instead."
fi
else
./run_woof_helper
fi