GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Rewrite of the `Base.getSettingsFolder()` and `Platform.getSettingsFolder()` by Stefterv · Pull Request #1335 · processing/processing4

Conversation

@Stefterv

@Stefterv Stefterv commented Nov 19, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Stefterv

Stefterv commented Nov 19, 2025

Copy link
Copy Markdown
Member 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)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Stefterv added 4 commits November 27, 2025 15:12
@Stefterv
Rewrite of the Base.getSettingsFolder() and `Platform.getSettingsFo…
4acb84b
…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
@Stefterv
Fixed issue with missing /
f472518
@Stefterv
Added both options for overrides
15588f3
- Added the previous settings override in base again
- Added a system property to override the settings folder within tests
@Stefterv
Add support for portable settings detection
1c27d78
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 force-pushed the settings-folder branch from c6c7f97 to 1c27d78 Compare November 27, 2025 14:13
@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
@catilac

catilac commented Dec 3, 2025

Copy link
Copy Markdown
Collaborator

lgtm! What is a good way for me to test this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Stefterv

Stefterv commented Dec 4, 2025

Copy link
Copy Markdown
Member Author

It shouldn't really change anything, so if you check the Preferences screen and compare between the local build and 4.4.10 they should be the same!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

catilac
catilac approved these changes Dec 5, 2025
View reviewed changes

@catilac catilac left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@catilac
catilac merged commit 467cee7 into processing:main Dec 5, 2025
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@diyaayay diyaayay mentioned this pull request Aug 6, 2026
Make Preferences standalone in app:utils #1563
Open
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@catilac catilac catilac approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Stefterv @catilac
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.