lib/scripts/java-gui-setup
author desharna
Sat, 22 Jan 2022 14:33:35 +0100
changeset 75420 01bb90de56bb
parent 73406 31fbde3baa97
permissions -rwxr-xr-x
optimized facts traversal in TPTP translation

#!/usr/bin/env bash
#
# java-gui-setup --- platform-specific setup for Java/Swing GUI applications

if [ "$ISABELLE_PLATFORM_FAMILY" = "macos" ]
then
  JAVA_VERSION="$("$ISABELLE_JDK_HOME/bin/java" -version 2>&1 | head -n 1 | cut -d '"' -f2)"
  JAVA_DOMAIN="com.azul.zulu.${JAVA_VERSION}.java"
  defaults read "$JAVA_DOMAIN" AppleWindowTabbingMode >/dev/null 2>/dev/null ||
    defaults write "$JAVA_DOMAIN" AppleWindowTabbingMode manual >/dev/null 2>/dev/null
fi