Skip to content

Defaults - #4

Merged
colemancda merged 8 commits into
masterfrom
feature/defaults
Nov 17, 2026
Merged

colemancda merged 8 commits into
masterfrom
feature/defaults

Conversation

@colemancda

Copy link
Copy Markdown
Member

Registers AppRuntime's Defaults contract in the Linux host: RuntimeHost's HostDefaults over a FileDefaultsStorage, kept beside the app's files.

  • LinuxDefaults (Sources/LinuxHost/LinuxDefaults.swift): <container>/Defaults when LINUXAPPRUNTIME_CONTAINER is set (a PortMaster port's conf/), else $XDG_CONFIG_HOME/<id>/Defaults or ~/.config/<id>/Defaults.
  • Registered in linux-app-host and listed in the packager's host contracts.
  • Tests: where settings go for each environment, the paths that can't be, and values written, removed and read back after a reopen.
  • Plan.md §9 is now "Files and settings"; README and PortMaster.md updated.

The unit tests pass on Debian 13 in Docker. ExampleDefaults hasn't been run end to end across two launches yet: Docker stopped answering during that run.

@colemancda
colemancda merged commit 2a2643a into master Nov 17, 2026
2 checks passed
@colemancda
colemancda deleted the feature/defaults branch November 17, 2026 03:50
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