File tree 1 file changed +9
-2
lines changed
it.baeyens.arduino.common/src/it/baeyens/arduino/common
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,15 @@ public static IPath getArduinoIdeHardwarePath() {
309
309
}
310
310
311
311
public static IPath getArduinoBoardsManagerPackagesPath () {
312
- IPath homPath = new Path (System .getProperty ("user.home" ));
313
- return homPath .append (".arduino15" ).append ("packages" );
312
+ switch (Platform .getOS ()) {
313
+ case Platform .OS_MACOSX :
314
+ return new Path (System .getProperty ("user.home" )).append ("Library" ).append ("Arduino15" ).append ("packages" );
315
+
316
+ case Platform .OS_WIN32 :
317
+ return new Path (System .getenv ("APPDATA" )).append ("Arduino15" ).append ("packages" );
318
+ default :
319
+ return new Path (System .getProperty ("user.home" )).append (".arduino15" ).append ("packages" );
320
+ }
314
321
}
315
322
316
323
public static String getArduinoIdeProgram () {
You can’t perform that action at this time.
0 commit comments