From 64725f8f1c2241e3fd65c58f18a3891d740b356d Mon Sep 17 00:00:00 2001 From: Scott Fennell Date: Thu, 6 Jan 2022 16:28:07 -0600 Subject: [PATCH] add workaround for legacy code (bsaf) on modern mac with java 17 (#1211) --- libexec/trick/pm/launch_java.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/trick/pm/launch_java.pm b/libexec/trick/pm/launch_java.pm index 3fa667f9..4bfd6743 100644 --- a/libexec/trick/pm/launch_java.pm +++ b/libexec/trick/pm/launch_java.pm @@ -37,7 +37,8 @@ sub launch_java($$) { $command .= "\\ -Xdock:name=\"$name\" \\ -Xdock:icon=$java_dir/build/classes/trick/common/resources/trick_icon.png \\ - -Djava.net.preferIPv4Stack=true \\" ; + -Djava.net.preferIPv4Stack=true \\ + --add-opens=java.desktop/com.apple.eawt=ALL-UNNAMED \\" ; } $command .= "$java_dir/build/$application.jar "; @@ -45,7 +46,6 @@ sub launch_java($$) { foreach (@ARGV) { $command .= "$_ "; } - system $command ; exit $? >> 8 ; }