Documentation
¶
Overview ¶
Package settingspage is the contract between lys-settings and the programs that open it: its command line, and the page list it prints so a launcher can offer its pages without linking the app.
Index ¶
Constants ¶
const ( // Program is the settings app's executable. Program = "lys-settings" // PageFlag opens the app on a page, by ID. PageFlag = "--page" // ListFlag prints the pages with Encode and exits. ListFlag = "--list-pages" // SettingFlag opens the app on the page holding a setting, with that // setting focused, by path. SettingFlag = "--setting" )
const PrivacyID = "privacy"
PrivacyID is the Privacy page: what apps were granted through the portal, each grant with a revoke control, and the screen-share reminder. The portal's reminder opens it.
Variables ¶
var ErrNotInstalled = errors.New("settingspage: lys-settings is not installed")
ErrNotInstalled is the app missing from the path, which is a choice and not a failure: lys-settings is a package of its own.
Functions ¶
Types ¶
type Page ¶
type Page struct {
ID string `json:"id"`
Title string `json:"title"`
Icon string `json:"icon"`
Settings []Setting `json:"settings,omitempty"`
}
Page is one page of the app, its title in the desktop's language.
func Decode ¶
Decode reads what ListFlag printed; a page without an ID, a title or a unique ID is an error, so no launcher offers a row that cannot open.