launchservices

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyLS

func ModifyLS(c client.Client, identifier string, noRescanLaunchServices bool) error

func WritePlist

func WritePlist(path string, p Plist) error

Types

type LSHandler

type LSHandler struct {
	LSHandlerContentType       string            `plist:"LSHandlerContentType,omitempty"`
	LSHandlerPreferredVersions map[string]string `plist:"LSHandlerPreferredVersions,omitempty"`
	LSHandlerRoleViewer        string            `plist:"LSHandlerRoleViewer,omitempty"`
	LSHandlerRoleAll           string            `plist:"LSHandlerRoleAll,omitempty"`
	LSHandlerURLScheme         string            `plist:"LSHandlerURLScheme,omitempty"`
}

type Plist

type Plist struct {
	LSHandlers []LSHandler `plist:"LSHandlers"`
}

func GetPlist

func GetPlist(path string) (Plist, error)

func ReadPlist

func ReadPlist(path string) (Plist, error)

func (*Plist) AddLSHandlers

func (p *Plist) AddLSHandlers(l []LSHandler)

func (*Plist) CleanHandlers

func (p *Plist) CleanHandlers()

Jump to

Keyboard shortcuts

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