muos

package
v2.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: GPL-3.0 Imports: 39 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitScript

func InitScript(exe string) (string, error)

InitScript returns the muOS user init script that starts the Zaparoo daemon at boot and restarts it if it crashes.

func Install

func Install(fs afero.Fs, exe string) (string, error)

Install writes the user init script and returns its path.

Types

type Platform

type Platform struct {
	shared.InputManager
	// contains filtered or unexported fields
}

Platform runs content through the muOS frontend's content loader.

func (*Platform) ConsoleManager

func (*Platform) ConsoleManager() platforms.ConsoleManager

func (*Platform) ForwardCmd

func (*Platform) ForwardCmd(_ *platforms.CmdEnv) (platforms.CmdResult, error)

func (*Platform) ID

func (*Platform) ID() string

func (*Platform) InputCoverage

func (*Platform) InputCoverage() platforms.InputClass

InputCoverage implements platforms.InputActivitySource.

func (*Platform) LaunchMedia

func (p *Platform) LaunchMedia(
	cfg *config.Instance, path string, launcher *platforms.Launcher, db *database.Database,
	opts *platforms.LaunchOptions,
) error

func (*Platform) LaunchSystem

func (*Platform) LaunchSystem(_ *config.Instance, _ string) error

func (*Platform) Launchers

func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher

func (*Platform) LookupMapping

func (*Platform) LookupMapping(_ *tokens.Token) (string, bool)

func (*Platform) ManagedByPackageManager

func (*Platform) ManagedByPackageManager() bool

func (*Platform) ReturnToMenu

func (p *Platform) ReturnToMenu() error

func (*Platform) RootDirs

func (p *Platform) RootDirs(cfg *config.Instance) []string

func (*Platform) ScanHook

func (*Platform) ScanHook(_ *tokens.Token) error

func (*Platform) Scrapers

func (*Platform) Scrapers(cfg *config.Instance) map[string]platforms.Scraper

func (*Platform) Screenshot

func (*Platform) Screenshot() (*platforms.ScreenshotResult, error)

func (*Platform) SetTrackedProcess

func (*Platform) SetTrackedProcess(_ *os.Process)

func (*Platform) Settings

func (p *Platform) Settings() platforms.Settings

func (*Platform) StartPost

func (p *Platform) StartPost(
	ctx context.Context,
	_ *config.Instance,
	_ platforms.LauncherContextManager,
	activeMedia func() *models.ActiveMedia,
	setActiveMedia func(*models.ActiveMedia),
	_ *database.Database,
	_ *idle.Scheduler,
) error

func (*Platform) StartPre

func (p *Platform) StartPre(cfg *config.Instance) error

func (*Platform) Stop

func (p *Platform) Stop() error

func (*Platform) StopActiveLauncher

func (p *Platform) StopActiveLauncher(_ platforms.StopIntent) error

func (*Platform) StopService

func (p *Platform) StopService(exe string) error

StopService stops the init script's supervisor loop and running daemons of the given binary other than the calling process, and waits for them to exit. A reinstall calls it first so the new binary and script take over.

func (*Platform) SupportedReaders

func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader

func (*Platform) Uninstall

func (p *Platform) Uninstall(exe string) error

Uninstall removes the user init script and stops the running service.

func (*Platform) WatchInput

func (*Platform) WatchInput(ctx context.Context, responsive bool, onActivity func()) error

WatchInput implements platforms.InputActivitySource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL