sysopen

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service provides a binding to allow the frontend to open a folder in the native OS file explorer.

func NewService

func NewService(skinFolder string) *Service

NewService returns a Service that can be used to open a folder in the native OS file explorer.

func (*Service) OpenFolder

func (s *Service) OpenFolder(path string) error

OpenFolder opens an arbitrary file path in the native OS file explorer.

func (*Service) OpenSkinsFolder

func (s *Service) OpenSkinsFolder()

OpenSkinsFolder opens the skins folder in the native OS file explorer.

func (*Service) Startup

func (s *Service) Startup(ctx context.Context)

Startup passes in a context from Wails.Run to allow the exec call to open a file explorer.

Any other context will cause OpenFolder and OpenSkinsFolder to panic.

Jump to

Keyboard shortcuts

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