shell
Manage files and URLs using default applications.
The shell
module provides functionalities related to desktop integration.
Methods
beep()
Plays the system's beep sound.
Returns
Promise<void>
openExternal(url)
Opens the specified URL using the system's default method. Note: This function will not have any effect if there is no default application set by the system.
url
string - The URL to be openedReturns
Promise<void>
openPath(path)
Opens the specified path using the system's default method.
path
string - The file path to be openedReturns
Promise<void>
showItemInFolder(path)
Shows the specified file or folder in the file manager.
path
string - The file or folder to be displayedReturns
Promise<void>
Last updated