Skip to content

GUI: remember a manually set OF path (#602) - #682

Closed
danoli3 wants to merge 1 commit into
openframeworks:masterfrom
danoli3:keep-manual-of-path
Closed

danoli3 wants to merge 1 commit into
openframeworks:masterfrom
danoli3:keep-manual-of-path

Conversation

@danoli3

@danoli3 danoli3 commented Oct 25, 2026

Copy link
Copy Markdown
Member

Fixes #602.

On every launch and every Settings tab click the GUI asked the cmdline --getofpath and replaced the OF path with the answer, and saved it. With the app outside an OF tree (e.g. /Applications) the answer is ../../.., so a path set in Settings was lost on the next launch.

  • picking the path with the folder dialog or typing it sets ofPathManual in settings.json
  • launch / Settings tab: a manually set path that is an openFrameworks folder (absolute, has libs/openFrameworks and addons) is kept; otherwise detection applies as before
  • detection never replaces a valid OF path with one that isn't (../../..)
  • the ofPath button still re-detects and clears ofPathManual

Tested with the GUI (scratch OF tree, detection finds that tree): saved /Users/.../openFrameworks with ofPathManual: true -> kept (keeping manually set path), with false -> detected path used and saved.

…s tab, never replace a valid path with a detected non-OF one (openframeworks#602)
@danoli3

danoli3 commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Combined into #683.

@danoli3 danoli3 closed this Oct 25, 2026
@danoli3
danoli3 deleted the keep-manual-of-path branch October 25, 2026 12:00
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.

[macOS?] PG does not remember OF root path and always defaults to ../../.. on startup

1 participant