Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit e024115

Browse files
committed
Fix sketchbook finder for newer linux versions of Arduino IDE
1 parent c1d95c5 commit e024115

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/Platform/System/SketchbookFinder.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ function(_get_user_preferences_file_path _return_var)
1212
if (${CMAKE_HOST_APPLE}) # Mac OS X
1313
set(dir_path "$ENV{HOME}/Library/Processing/${preferences_file_name}")
1414
else () # Linux
15-
set(dir_path "$ENV{HOME}/.processing/${preferences_file_name}")
15+
if (EXISTS "$ENV{HOME}/.arduino15/${preferences_file_name}")
16+
set(dir_path "$ENV{HOME}/.arduino15/${preferences_file_name}")
17+
else ()
18+
set(dir_path "$ENV{HOME}/.processing/${preferences_file_name}")
19+
endif ()
1620
endif ()
1721
else () # Windows
1822
string(REPLACE "\\" "/" home_path $ENV{HOMEPATH})

0 commit comments

Comments
 (0)