- # this suppresses the Java icon appearing in the macOS Dock and maybe other things in other OSes
- JVMARGS=( "${JVMARGS[@]}" "-Djava.awt.headless=true" )
+ # not setting java.awt.headless in java invocation of running jalview due to problem with Jmol
+ if [ "${HELP}" = 1 ]; then
+ JVMARGS=( "${JVMARGS[@]}" "-Djava.awt.headless=true" )
+ fi
+ # this suppresses the Java icon appearing in the macOS Dock
+ if [ "${ISMACOS}" = 1 ]; then
+ JVMARGS=( "${JVMARGS[@]}" "-Dapple.awt.UIElement=true" )
+ fi