Skip to content

Commit 99fe051

Browse files
committed
Added preferences.txt option to disable preferences save
Fix #5668
1 parent daefdc9 commit 99fe051

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ static protected void save() {
114114
if (!doSave)
115115
return;
116116

117+
if (getBoolean("preferences.readonly"))
118+
return;
119+
117120
// on startup, don't worry about it
118121
// this is trying to update the prefs for who is open
119122
// before Preferences.init() has been called.

build/shared/lib/preferences.txt

+3
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ serial.line_ending=1
279279
# default chosen language (none for none)
280280
editor.languages.current =
281281

282+
# Disable saving of preferences.txt file (settings will not survive Arduino IDE reboot)
283+
preferences.readonly=false
284+
282285
# Debugging/Development Preferences
283286
# ---------------------------------
284287

0 commit comments

Comments
 (0)