darwin

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

View Source
var URLChannel = make(chan string, 1)

URLChannel receives URLs sent to the app via macOS Apple Events.

Functions

func HandleURL

func HandleURL(u *C.char)

func PumpEvents

func PumpEvents(seconds float64)

PumpEvents runs the macOS run loop briefly to allow pending Apple Events to be delivered.

func RegisterURLHandler

func RegisterURLHandler()

RegisterURLHandler registers the Apple Event handler for kAEGetURL. Must be called before the UI event loop starts.

Types

type BrowserService

type BrowserService struct{}

func (*BrowserService) AreWeTheDefaultBrowser

func (b *BrowserService) AreWeTheDefaultBrowser() bool

func (*BrowserService) GetAvailableBrowsers

func (b *BrowserService) GetAvailableBrowsers() ([]linkquisition.Browser, error)

func (*BrowserService) GetDefaultBrowser

func (b *BrowserService) GetDefaultBrowser() (linkquisition.Browser, error)

func (*BrowserService) GetIconForBrowser

func (b *BrowserService) GetIconForBrowser(browser linkquisition.Browser) ([]byte, error)

func (*BrowserService) MakeUsTheDefaultBrowser

func (b *BrowserService) MakeUsTheDefaultBrowser() error

func (*BrowserService) OpenUrlWithBrowser

func (b *BrowserService) OpenUrlWithBrowser(url string, browser *linkquisition.Browser) error

func (*BrowserService) OpenUrlWithDefaultBrowser

func (b *BrowserService) OpenUrlWithDefaultBrowser(url string) error

type PathProvider

type PathProvider struct{}

func (*PathProvider) GetConfigFolderPath

func (p *PathProvider) GetConfigFolderPath() string

func (*PathProvider) GetLogFolderPath

func (p *PathProvider) GetLogFolderPath() string

func (*PathProvider) GetPluginFolderPath

func (p *PathProvider) GetPluginFolderPath() string

Jump to

Keyboard shortcuts

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