Skip to content

Conversation

@Stefterv
Copy link
Collaborator

@Stefterv Stefterv commented Nov 19, 2025

Rewrote both functions so they fit into a single file, negating the need for hopping around when looking into what this functionality does. Now all the errors that can occur can be quickly visible and it no longer generates random awt windows through the Messages class

TODO:

  • Write tests
  • Test on Linux
  • Test on Linux with sudo
  • Test on Linux with XDG_CONFIG_HOME
  • Test on Windows
  • Text on macOS
  • Figure out a steady way to support portable versions
  • Test Portable preferences
    • macOS
    • Windows
    • Linux

@Stefterv
Copy link
Collaborator Author

One thing I just realised, that maybe it is a good idea to migrate the settings folders on each platform also to a more modern place (maybe Java can give us a location)

…lder()`

Rewrote both function so they fit into a single file, negating the need for hopping around when looking into what this functionality does.

Also rewrote it so it is no longer generates random awt windows through the `Messages` class
- Added the previous settings override in base again
- Added a system property to override the settings folder within tests
Introduces logic to detect a preferences.txt file in the same folder as the running executable or jar. If found, settings are loaded from this location, improving portability and allowing users to override default settings without modifying system directories.
@Stefterv Stefterv requested a review from catilac November 27, 2025 14:13
@Stefterv Stefterv marked this pull request as ready for review November 27, 2025 14: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.

1 participant