diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index aaa28162f..416cbedad 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -1534,12 +1534,12 @@ public class Base { static public String getAvrBasePath() { - if(Base.isLinux()) { - return ""; // avr tools are installed system-wide and in the path - } else { - return getHardwarePath() + File.separator + "tools" + - File.separator + "avr" + File.separator + "bin" + File.separator; - } + String path = getHardwarePath() + File.separator + "tools" + + File.separator + "avr" + File.separator + "bin" + File.separator; + if (Base.isLinux() && !(new File(path)).exists()) { + return ""; // use distribution provided avr tools if bundled tools missing + } + return path; } diff --git a/build/build.xml b/build/build.xml index 6a40d1b2c..52e7ac0cc 100644 --- a/build/build.xml +++ b/build/build.xml @@ -349,11 +349,24 @@ + + + + + + + + + + + + +