We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 344dcb3 commit 6712c2eCopy full SHA for 6712c2e
java/src/processing/mode/java/JavaBuild.java
@@ -1280,7 +1280,8 @@ protected boolean exportApplication(File destFolder,
1280
// isn't used when exporting for Unix.
1281
pw.print("#!/bin/sh\n\n");
1282
//ps.print("APPDIR=`dirname $0`\n");
1283
- pw.print("APPDIR=$(dirname \"$0\")\n"); // more posix compliant
+ pw.print("APPDIR=$(readlink -f \"$0\")\n"); //Allow Symlinks
1284
+ pw.print("APPDIR=$(dirname \"$APPDIR\")\n"); // more posix compliant
1285
// another fix for bug #234, LD_LIBRARY_PATH ignored on some platforms
1286
//ps.print("LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$APPDIR\n");
1287
if (embedJava) {
0 commit comments