Skip to content

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Jun 13, 2024

Fixes #3040

Removes the FileSystemPreferences that we copied from the Linux preference implementation with InMemoryPreferences.

Preferences are thus initialized from our ...preferences.properties files, updated with optional settings.ini bundled in the product's "install" location, and finally updated via -settings /path/to/xx.ini command line options either in a launcher script or directly via the command line.

Preferences are no longer persisted, removing the surprises seen in the past when running a product with some -settings ... and then still seeing the effect when later NOT running with those -settings .., which is especially confusing when alarm-server -settings .. is followed by phoebus and the latter then sees settings from the former.

Also means we no longer need to worry about deprecated API in the FileSystemPreferences.

Updated related documentation.

@shroffk shroffk merged commit a730d56 into master Jun 17, 2024
@shroffk shroffk deleted the in_memory_prefs_3040 branch February 11, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop persisting preferences in .phoebus.userPrefs?

2 participants