Expand description
Shared desktop shell. Product entrypoints route headless commands before
calling [run], then supply the selected dashboard factories and artwork.
Structs§
- Account
Registration - How an app adds a native account: its identity provider and the trusted adapter it hands the token source to before Spaces start.
- Account
Session - A native product adapter’s snapshot of the current account.
- Account
Token Source - Gives a trusted desktop adapter silent access to a registered resource. A lease taken while the account changes is refused, and the generation advances when a new account is committed, so a client bound to an earlier generation can tell that it is stale.
- Board
Registration - Bundled
Font - One embedded font file and the family it registers.
- Product
Build - Compile-time identity supplied by a thin product binary.
- Settings
Extension - A product capability’s Application destination in Settings.
Functions§
- account_
session - A product-composition seam for a trusted native service adapter, such as a Space crate an app adds that calls its own API with the account.
- config_
file - Existing cross-platform config first, then native config. New settings use the native root when available, preserving Subspace’s existing location.
- launch
- Called by thin binaries with only their selected board providers. Every
mode first gets the user’s
PATH; nothing before that starts a thread. - prepare_
context - Loads only product command aliases before CLI or desktop startup. Service credentials are not read here.
- reads_
configuration - Whether
argsstart a route that reads the app’s configuration. The product metadata, About,--versionandupgraderead none, so an app that checks its own settings beforelaunchskips those checks for them, and a broken setting never blocks an upgrade. - record_
new_ install_ theme - Records
themeas the saved theme whencontext‘s product has neither a config file nor a state file: a new install. Returns whether it recorded. An existing install, including one whose files are unreadable or malformed, is left alone. Nothing is written, and an error returned, when a new install’sthemeis not a variant of the product’s theme catalogue or when the files’ folder cannot be read, so a new install cannot be told from an existing one. Only the desktop app calls this, before it starts; command-line and headless runs must not. - reload_
configured_ boards - Reloads the configured provider after a checked, confirmed config write. Shells observe the factory set and reconcile their retained views and editors. Native boards’ own files are not part of that write, so their settings stay.
- report_
startup_ failure - Writes
titleanddetailto standard error and shows them in a window titledapp_nameuntil the person quits or closes it. Returns the failure exit code where the event loop returns (Linux and Windows); on macOS quitting ends the process from inside the loop, with exit code 0.
Type Aliases§
- Configured
Boards - The boards an app builds from its config file, such as
webBoards. Apps without one show only the boards their descriptor lists. - Reranker
Factory - A product supplies its optional model implementation without coupling other products to it.