opener

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package opener hands a link or path to the desktop without waiting for the application that receives it.

Index

Constants

View Source
const BrowserFailureWord = "could not open your browser · open the link above"

BrowserFailureWord is the recovery line shared by first run and terminal connection commands. The link is already visible immediately above it.

Variables

This section is empty.

Functions

func Command

func Command() (string, []string)

Command reports the platform program that opens a target. Linux answers xdg-open exactly as the chat surface always has, so a machine where that works keeps working; a WSL box that has no xdg-open at all falls to wslview, the bridge into the Windows desktop, rather than to a sentence saying the browser did not open. The order matters: on a WSL install where xdg-open is present it is usually wired to wslview already, and preferring wslview over it would change which browser opens on a machine that was fine.

func Start

func Start(target string) error

Start hands target to the platform and returns after the process has started. The receiving application is allowed to outlive codeaf.

Types

This section is empty.

Jump to

Keyboard shortcuts

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