1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-15 12:29:26 +01:00

Merge pull request #1178 from sgk/linuxFolder

Default sketchbook folder for Linux should be "Arduino".
This commit is contained in:
Federico Fissore 2013-01-07 00:47:59 -08:00
commit b9b7dc8b1d

View File

@ -53,6 +53,12 @@ public class Platform extends processing.app.Platform {
} }
public File getDefaultSketchbookFolder() throws Exception {
File home = new File(System.getProperty("user.home"));
return new File(home, "Arduino");
}
public void openURL(String url) throws Exception { public void openURL(String url) throws Exception {
if (openFolderAvailable()) { if (openFolderAvailable()) {
String launcher = Preferences.get("launcher"); String launcher = Preferences.get("launcher");