Skip to main content

Crate subspace_shell

Crate subspace_shell 

Source
Expand description

Shared desktop shell. Product entrypoints route headless commands before calling [run], then supply the selected dashboard factories and artwork.

Structs§

AccountRegistration
How an app adds a native account: its identity provider and the trusted adapter it hands the token source to before Spaces start.
AccountSession
A native product adapter’s snapshot of the current account.
AccountTokenSource
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.
BoardRegistration
BundledFont
One embedded font file and the family it registers.
ProductBuild
Compile-time identity supplied by a thin product binary.
SettingsExtension
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 args start a route that reads the app’s configuration. The product metadata, About, --version and upgrade read none, so an app that checks its own settings before launch skips those checks for them, and a broken setting never blocks an upgrade.
record_new_install_theme
Records theme as the saved theme when context‘s product has neither a config file nor a state file: a new install. Returns whether it recorded. product_themes are the app’s own theme documents (ProductBuild.product_themes, &[] for none), which theme may be a variant of. 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’s product themes fail the checks startup makes, when theme is 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 title and detail to standard error and shows them in a window titled app_name until 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§

ConfiguredBoards
The boards an app builds from its config file, such as webBoards. Apps without one show only the boards their descriptor lists.
ProductThemes
Theme documents a product embeds beside the Framework’s catalogue, as (id, json).
RerankerFactory
A product supplies its optional model implementation without coupling other products to it.