lib/scripts/java-gui-setup
author wenzelm
Sat, 05 Jun 2021 20:20:25 +0200
changeset 73814 c8b4a4f69068
parent 73161 31fbde3baa97
child 79556 0631dfc0db07
permissions -rwxr-xr-x
clarified check (refining fc828f64da5b): etc/settings or etc/components is not strictly required according to "init_component", and notable components only have session ROOTS (e.g. AFP/thys);

#!/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