XdgBrowserLauncher

Browser launcher that uses xdg-open to open URLs on Linux systems.

This is typically available on Linux systems with XDG-compliant desktop environments. xdg-open delegates to the user's preferred browser.

Delegates to PathBrowserLauncher if xdg-open is found 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.