Skip to content

Commit fa0678f

Browse files
committed
added 'runtime.tools.packager-name-version.path' property in the global properties map
1 parent 2c6f6e7 commit fa0678f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

arduino-core/src/processing/app/BaseNoGui.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -867,14 +867,16 @@ public static void createToolPreferences(Collection<ContributedTool> installedTo
867867

868868
for (ContributedTool tool : installedTools) {
869869
File installedFolder = tool.getDownloadableContribution(getPlatform()).getInstalledFolder();
870-
String absolutePath;
870+
String toolPath;
871871
if (installedFolder != null) {
872-
absolutePath = installedFolder.getAbsolutePath();
872+
toolPath = installedFolder.getAbsolutePath();
873873
} else {
874-
absolutePath = Constants.PREF_REMOVE_PLACEHOLDER;
874+
toolPath = Constants.PREF_REMOVE_PLACEHOLDER;
875875
}
876-
PreferencesData.set(prefix + tool.getName() + ".path", absolutePath);
877-
PreferencesData.set(prefix + tool.getName() + "-" + tool.getVersion() + ".path", absolutePath);
876+
PreferencesData.set(prefix + tool.getName() + ".path", toolPath);
877+
PreferencesData.set(prefix + tool.getName() + "-" + tool.getVersion() + ".path", toolPath);
878+
PreferencesData.set(prefix + tool.getPackager() + "-" + tool.getName() + "-" + tool.getVersion() + ".path",
879+
toolPath);
878880
}
879881
}
880882

0 commit comments

Comments
 (0)