@lynx-js/lynxtron / Shell
Shell
Methods
beep()
Play the beep sound.
Returns
void
Defined in
openExternal()
Open the given external protocol URL in the desktop's default manner. (For example, mailto: URLs in the user's default mail agent).
Parameters
Returns
Promise<void>
Defined in
openPath()
Resolves with a string containing the error message corresponding to the failure if a failure occurred, otherwise "".
Open the given file in the desktop's default manner.
Parameters
Returns
Promise<string>
Defined in
readShortcutLink() Windows
Resolves the shortcut link at shortcutPath.
An exception will be thrown when any error happens.
Parameters
Returns
Defined in
showItemInFolder()
Show the given file in a file manager. If possible, select the file.
Parameters
Returns
void
Defined in
trashItem()
Resolves when the operation has been completed. Rejects if there was an error while deleting the requested item.
This moves a path to the OS-specific trash location (Trash on macOS, Recycle Bin on Windows, and a desktop-environment-specific location on Linux).
Parameters
Returns
Promise<void>
Defined in
writeShortcutLink()
operation: "create" | "update" | "replace" Windows
Whether the shortcut was created successfully.
Creates or updates a shortcut link at shortcutPath.
Parameters
Returns
boolean
Defined in
options: ShortcutDetails Windows
Whether the shortcut was created successfully.
Creates or updates a shortcut link at shortcutPath.
Parameters
Returns
boolean
Defined in