Skip to content

Commit 6712c2e

Browse files
committed
Add support for symlinks to exported applications
1 parent 344dcb3 commit 6712c2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/src/processing/mode/java/JavaBuild.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,8 @@ protected boolean exportApplication(File destFolder,
12801280
// isn't used when exporting for Unix.
12811281
pw.print("#!/bin/sh\n\n");
12821282
//ps.print("APPDIR=`dirname $0`\n");
1283-
pw.print("APPDIR=$(dirname \"$0\")\n"); // more posix compliant
1283+
pw.print("APPDIR=$(readlink -f \"$0\")\n"); //Allow Symlinks
1284+
pw.print("APPDIR=$(dirname \"$APPDIR\")\n"); // more posix compliant
12841285
// another fix for bug #234, LD_LIBRARY_PATH ignored on some platforms
12851286
//ps.print("LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR\n");
12861287
if (embedJava) {

0 commit comments

Comments
 (0)