Skip to content

AppLauncher should remain in headless mode when running from CLI with arguments #1212

@rbouckaert

Description

@rbouckaert

Currently, it initialises JavaFX, which results in the cursor being refocused on OS X. This is annoying when trying to run many apps in the background.

Proposed solution: update shell script for applauncher like so:

if [ "$#" -gt 1 ]; then
    HEADLESS="-Djava.awt.headless=true"
else
    HEADLESS=""
fi

# and then we can add it to the call below:
if [ -n "$BEAST_EXTRA_LIBS" ]; then 
  "$JAVA" $HEADLESS -Dlauncher.wait.for.exit=true -Xss256m -Xmx24g -Djava.library.path="$BEAST_EXTRA_LIBS" -Duser.language=en -cp "$BEAST_LIB/launcher.jar" beast.pkgmgmt.launcher.AppLauncherLauncher $*
else	
  "$JAVA" $HEADLESS -Dlauncher.wait.for.exit=true -Xss256m -Xmx24g -Duser.language=en -cp "$BEAST_LIB/launcher.jar" beast.pkgmgmt.launcher.AppLauncherLauncher $*
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions