launcher

package
v0.0.0-...-98965d2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package launcher installs and executes browser launcher symlinks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveExecutable

func ResolveExecutable(invocation string) (string, error)

ResolveExecutable returns the public executable path represented by invocation. It searches PATH when necessary and resolves symlinks, but does not use os.Executable: package wrappers may have replaced the running image while preserving their public path in argv[0].

func Run

func Run(invocation string, arguments []string) (bool, error)

Run detects whether invocation names an installed browser launcher. If it does, Run replaces the current process with the configured browser and returns only when preparing or executing the browser fails.

func Write

func Write(
	target,
	launcherExecutable,
	browserExecutable,
	flagsFile string,
	flags,
	extraFlags []string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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