Skip to content

ElectronShell.openPath method

ElectronShell › openPath

Unofficial

Opens the given file in the desktop's default manner.

Signature:

openPath(path: string): Promise<string>

Parameters:

Parameter Type Description
path string The path to open.

Returns: Promise<string>A Promise that resolves with an error message if a failure occurred, otherwise an empty string.