Skip to content

Commit 04cfe0c

Browse files
author
Federico Fissore
committed
Windows: inverted folder entries, as Shell Folders is more reliable (when
present)
1 parent 9729b1b commit 04cfe0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino-core/src/processing/app/windows/Platform.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ public void init() throws IOException {
5959
}
6060

6161
private void recoverSettingsFolderPath() {
62-
String path = readRegistryEntry(new String[]{"User Shell Folders", "Shell Folders"}, "Local AppData");
62+
String path = readRegistryEntry(new String[]{"Shell Folders", "User Shell Folders"}, "Local AppData");
6363
this.settingsFolder = new File(path, "Arduino15");
6464
}
6565

6666
private void recoverDefaultSketchbookFolder() {
67-
String path = readRegistryEntry(new String[]{"User Shell Folders", "Shell Folders"}, "Personal");
67+
String path = readRegistryEntry(new String[]{"Shell Folders", "User Shell Folders"}, "Personal");
6868
this.defaultSketchbookFolder = new File(path, "Arduino");
6969
}
7070

0 commit comments

Comments
 (0)