boolean wait = true;
boolean quiet = false;
boolean headless = false;
+ boolean gui = false;
// must set --debug before --launcher...
boolean launcherstop = false;
boolean launcherprint = false;
{
headless = true;
}
+ if (arg.equals("--gui"))
+ {
+ gui = true;
+ }
if (debug && arg.equals("--launcherprint"))
{
launcherprint = true;
arguments.add(arg);
}
}
+ if (gui)
+ {
+ // --gui takes precedence over --headless
+ headless = false;
+ }
// use saved preferences if no cmdline args
boolean useCustomisedSettings = LaunchUtils
# check for headless mode
HEADLESS=0
-for ARG in ARGS; do
+for ARG in "${@}"; do
if [ "${ARG}" = "--headless" ]; then
HEADLESS=1
+ elif [ "${ARG}" = "--gui" ]; then
+ # --gui takes precedence over --headless
+ HEADLESS=0
break
fi
done