From 4f2facf541a7dba27250f982f03002cfc71354b6 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Sat, 11 Nov 2017 14:49:32 -0800 Subject: [PATCH] Ensure macOS bundle starts the SWT GUI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to actually start the SWT-based GUI on macOS and have anything start, you need -XstartOnMainThread. This is a Cocoa limitation. If you have that (and we do now), you can pass the -swt argument and it runs. (More than I can say for Linux using the non-integrated SWT provided by Debian at the moment…) What doesn't work is the open dialog. No files are selectable unless you tell it to allow all files, and then .dsk files which the cmdline jar file can handle fine are somehow an unsupported format. Uh huh. That much at least should not be too hard to fix. Whether it works after that is fixed, I cannot say. What I can say is that the problem does not exist if you don't pass -swt, however the lack of a proper Swing GUI means it doesn't really matter because you can't do anything with the files once you've opened them. --- build/build.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/build/build.xml b/build/build.xml index edfcaf4..103470f 100755 --- a/build/build.xml +++ b/build/build.xml @@ -192,6 +192,7 @@ bundleid="com.webcodepro.applecommander" stubfile="${mac.dir}/universalJavaApplicationStub" icon="${mac.dir}/AppleCommander.icns" + arguments="-swt" startonmainthread="true" jvmversion="1.6+" useJavaXKey="true" developmentregion="English" copyright="Copyright 2002-2008 Rob Greene and John B. Matthews.">