From e5c47bf288363470e1b998a255b28ef1bb43cda7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 8 Apr 2023 11:08:54 +0100 Subject: [PATCH] Plumb JARRG_JAVA_OPTS through I did this to try to pass hidpi options which wasn't successful, but I'll keep it. --- jarrg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jarrg b/jarrg index 9b26f58..14c8fd9 100755 --- a/jarrg +++ b/jarrg @@ -171,6 +171,7 @@ if $check_only; then echo "Check successful."; exit 0; fi set +e $setup_only_simulate "$realjava" \ -Dnet.chiark.yarrg.controlpanel.exitstatus=12 \ + $JARRG_JAVA_OPTS \ -jar "$srcjardir/Jarrg-ControlPanel.jar" rc=$? set -e @@ -232,12 +233,13 @@ cat <<'END' >"$wrapper" set -e$JARRG_JWRAP_X -- \ -Djavax.accessibility.assistive_technologies=$atclass \ -Djava.ext.dirs="$JARRG_EXTDIR:$JARRG_JRE/lib/ext" \ + $JARRG_JAVA_OPTS \ "$@" fi real="$JARRG_JRE/bin/java" log "running $real $*" - exec "$real" "$@" + exec "$real" $JARRG_JAVA_OPTS "$@" END chmod +x -- "$wrapper" -- 2.30.2