diff options
author | Niels Martignène | 2015-06-10 10:52:49 +0200 |
---|---|---|
committer | Niels Martignène | 2015-06-10 10:52:49 +0200 |
commit | b6dd46a0c07544bc2b74f509c56a60e4f07cd0e0 (patch) | |
tree | a19cf058e9144368c7bcca1125cd4b593fa1bd97 /arduino-fix-arguments.patch | |
download | aur-b6dd46a0c07544bc2b74f509c56a60e4f07cd0e0.tar.gz |
Initial import
Diffstat (limited to 'arduino-fix-arguments.patch')
-rw-r--r-- | arduino-fix-arguments.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arduino-fix-arguments.patch b/arduino-fix-arguments.patch new file mode 100644 index 000000000000..1cafeedde9ce --- /dev/null +++ b/arduino-fix-arguments.patch @@ -0,0 +1,25 @@ +--- a/arduino 2013-04-11 13:31:37.000000000 +0200 ++++ b/arduino 2014-01-12 15:18:46.159694131 +0100 +@@ -2,6 +2,16 @@ + + APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )" + ++args=() ++for arg in "$@" ++do ++ if [[ "$arg" == -* ]]; then ++ args+=("$arg") ++ else ++ args+=("$(realpath "$arg")") ++ fi ++done ++ + cd "$APPDIR" + + for LIB in \ +@@ -19,4 +29,4 @@ + + export PATH="${APPDIR}/java/bin:${PATH}" + +-java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$@" ++java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "${args[@]}" |