Skip to content

Commit 8db5484

Browse files
authored
Merge pull request #1099 from madhephaestus/patch-1
Adding the Documents folder to the default path for Sloeber on Windows
2 parents 296aedb + 168404e commit 8db5484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io.sloeber.core/src/io/sloeber/core/api/Defaults.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public class Defaults {
3232
*/
3333
public static String getPrivateLibraryPath() {
3434
IPath homPath = new Path(System.getProperty("user.home"));
35-
if(SystemUtils.IS_OS_MAC ) {
35+
if(SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS ) {
3636
homPath=homPath.append("Documents");
3737
}
3838
return homPath.append("Arduino").append(LIBRARY_PATH_SUFFIX).toString();
3939
}
4040

4141
public static String getPrivateHardwarePath() {
4242
IPath homPath = new Path(System.getProperty("user.home"));
43-
if(SystemUtils.IS_OS_MAC ) {
43+
if(SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_WINDOWS ) {
4444
homPath=homPath.append("Documents");
4545
}
4646
return homPath.append("Arduino").append(Const.ARDUINO_HARDWARE_FOLDER_NAME).toString();

0 commit comments

Comments
 (0)