Skip to content

Commit 55a18f6

Browse files
committed
handle Terminal.app move in macOS Catalina (fixes #6091)
1 parent 65c167b commit 55a18f6

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

build/build.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,20 @@
694694

695695
<target name="macosx-run" depends="macosx-build"
696696
description="Run Mac OS X version">
697+
698+
<!-- Terminal.app has a new location in Catalina -->
699+
<!-- https://github.com/processing/processing/issues/6091 -->
700+
<available file="/System/Applications/Utilities/Terminal.app" type="dir"
701+
property="terminal.path"
702+
value="/System/Applications/Utilities/Terminal.app" />
703+
704+
<available file="/Applications/Utilities/Terminal.app" type="dir"
705+
property="terminal.path"
706+
value="/Applications/Utilities/Terminal.app" />
707+
697708
<exec executable="open" dir="macosx/work" spawn="true">
698709
<arg value="-a" />
699-
<arg value="/Applications/Utilities/Terminal.app" />
710+
<arg value="${terminal.path}" />
700711
<arg value="Processing.app/Contents/MacOS/Processing" />
701712
</exec>
702713
</target>

0 commit comments

Comments
 (0)