Skip to content

Commit fb3a7de

Browse files
committed
fix Linux readlink error when running processing-java (issue #1578)
1 parent 10c9a53 commit fb3a7de

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

build/linux/processing

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,20 @@ log CLASSPATH
9898
export PATH="$JDKDIR/bin":"$PATH"
9999
log PATH
100100

101-
# Start Processing in the same directory as this script
102-
if [ "$1" ]; then
103-
SKETCH=`readlink -f $1`
104-
else
105-
SKETCH=
106-
fi
107-
cd "$APPDIR"
108-
109101
current_name=`basename $0`
110102
cmd_name='processing-java'
111103

112104
if [ $current_name = $cmd_name ]
113105
then
114106
java processing.mode.java.Commander "$@"
115107
else
116-
java processing.app.Base "$SKETCH" &
108+
# Start Processing in the same directory as this script
109+
if [ "$1" ]; then
110+
SKETCH=`readlink -f $1`
111+
else
112+
SKETCH=
113+
fi
114+
cd "$APPDIR"
115+
116+
java processing.app.Base "$SKETCH" &
117117
fi

todo.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ X fix "Bounds out of range" when outdenting a block of text
6161
X Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Bounds out of range: 5374,5376 [5375]
6262
X at processing.app.syntax.JEditTextArea.select(JEditTextArea.java:1214)
6363
X at processing.app.Editor.handleIndentOutdent(Editor.java:1819)
64+
X play button (and others) no longer highlighting
65+
X http://code.google.com/p/processing/issues/detail?id=688
66+
X run button not properly unhighlighting
67+
X patch from John Li (jli@circularly.org)
68+
X readlink error when running processing-java
69+
X patch from richard@crash.net.nz
70+
X http://code.google.com/p/processing/issues/detail?id=1578
6471

6572
manindra
6673
M bug that was causing the Debugger to point to wrong break point line numbers
@@ -96,6 +103,7 @@ _ "To use this library, you must use the 32-bit version of Processing."
96103

97104

98105
2.0 FINAL / library/tool/mode manager cleanup
106+
_ boogers still being left around
99107
_ make already installed libraries distinguishable in the list
100108
_ http://code.google.com/p/processing/issues/detail?id=1212
101109
_ excessive CPU usage of PDE after using library manager
@@ -606,9 +614,7 @@ _ http://code.google.com/p/processing/issues/detail?id=174
606614

607615
PDE / Editor Toolbar (Buttons)
608616

609-
_ play button (and others) no longer highlighting
610-
_ http://code.google.com/p/processing/issues/detail?id=688
611-
_ run button not properly unhighlighting
617+
_ run button issues (unconfirmed)
612618
_ does it unhighlight after compile or runtime errors?
613619
_ also when using draw() instead of loop()
614620
_ applet needs to notify runner that it has terminated

0 commit comments

Comments
 (0)