/usr/bin/arduino is in arduino 2:1.0.5+dfsg2-4.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #!/bin/bash
if [[ `id -u` -ne 0 ]]; then
# for group in dialout tty; do
for group in dialout; do
if ! groups | grep -q "\b$group\b"; then
missing_groups="$missing_groups\n$group"
fi
done
if [[ -n $missing_groups ]] && ! java -jar /usr/share/arduino/arduinopc.jar; then
pkexec /usr/bin/arduino-add-groups
fi
fi
APPDIR=/usr/share/arduino
cd "$APPDIR"
for LIB in \
java/lib/rt.jar \
java/lib/tools.jar \
lib/*.jar \
;
do
CLASSPATH="${CLASSPATH}:${LIB}"
done
export CLASSPATH
LD_LIBRARY_PATH="/usr/lib/jni${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
export PATH="${APPDIR}/java/bin:${PATH}"
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$@"
|