launcher

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch added in v1.3.2

func Branch(ctx context.Context, launcherFlags *flags.LauncherFlags)

func BuildTime

func BuildTime() string

func HasInstallation

func HasInstallation() bool

HasInstallation returns true iff the launcher's desired path under user files is occupied by any file.

func Install

func Install(launcherFlags *flags.LauncherFlags)

func InstallShortcuts added in v1.4.0

func InstallShortcuts(targetProgramPath string, launcherFlags *flags.LauncherFlags)

func IsInstallationOutdated

func IsInstallationOutdated() bool

IsInstallationOutdated returns true if the time the installed launcher binary was built predates the time the currently running launcher binary was built.

func IsInstanceInstalled

func IsInstanceInstalled() bool

IsInstanceInstalled returns true iff the binary running this code is to be considered installed.

func IsInstanceInstalledForCurrentUser

func IsInstanceInstalledForCurrentUser() bool

IsInstanceInstalledForCurrentUser returns true iff the launcher's desired path under user files is occupied by the program running this code.

func IsInstanceInstalledInSystemMode added in v1.4.0

func IsInstanceInstalledInSystemMode() bool

IsInstanceInstalledInSystemMode returns true iff we are in system mode.

func LauncherMain added in v1.3.2

func LauncherMain(ctx context.Context, launcherFlags *flags.LauncherFlags)

func Linger

func Linger()

func MustRestartWithInstalledBinary

func MustRestartWithInstalledBinary(launcherFlags *flags.LauncherFlags)

func ReportProgramNameDivergence added in v1.4.0

func ReportProgramNameDivergence()

func RestartWithInstalledBinary

func RestartWithInstalledBinary(launcherFlags *flags.LauncherFlags) bool

func Run

func Run(ctx context.Context, launcherFlags *flags.LauncherFlags)

func UninstallPrompt

func UninstallPrompt(launcherFlags *flags.LauncherFlags)

Types

type DesktopFileData

type DesktopFileData struct {
	Name     string
	Comment  string
	Exec     string
	Icon     string
	Keywords string
}

Jump to

Keyboard shortcuts

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