DefaultBrowserLauncher

Launcher of a URL in the default system browser.

On platforms where the Java AWT Desktop API supports the BROWSE action (e.g., macOS, most Windows setups), it is used directly. On platforms where it is not supported (e.g., Linux on Wayland), this launcher falls back to XdgBrowserLauncher if xdg-open is available in the system PATH.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isValid: Boolean

Indicates whether the browser is valid and can be launched.

Functions

Link copied to clipboard
open override fun launch(url: String)

Launches a URL in the specified browser.

Link copied to clipboard
open fun launchLocal(port: Int, endpoint: String = "/")

Launches a local server URL in the specified browser.