We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 199d069 commit 6e8e3a7Copy full SHA for 6e8e3a7
arduino-core/src/processing/app/BaseNoGui.java
@@ -186,7 +186,11 @@ static public PreferencesMap getBoardPreferences() {
186
}
187
188
static public File getContentFile(String name) {
189
- File installationFolder = new File(System.getProperty("APP_DIR"));
+ String appDir = System.getProperty("APP_DIR");
190
+ if (appDir == null || appDir.length() == 0) {
191
+ appDir = currentDirectory;
192
+ }
193
+ File installationFolder = new File(appDir);
194
return new File(installationFolder, name);
195
196
0 commit comments