Skip to main content

Crate tauri_plugin_opener

Crate tauri_plugin_opener 

Source
Expand description

Open files and URLs using their default application, and reveal files in the system’s file explorer.

Use the OpenerExt trait to access Opener::open_url and Opener::open_path from a running Tauri app; the plugin’s open_url and open_path commands enforce the scope configured for the plugin before delegating to them. The open_url and open_path free functions and the Opener methods themselves do not perform any scope check. reveal_item_in_dir and reveal_items_in_dir return Error::UnsupportedPlatform on Android and iOS.

Structs§

Builder
The opener plugin Builder.
Opener
Access to the opener APIs, managed by the plugin as app state.

Enums§

Error
The error type returned by the opener plugin’s commands and APIs.

Traits§

OpenerExt
Extensions to tauri::App, tauri::AppHandle, tauri::WebviewWindow, tauri::Webview and tauri::Window to access the opener APIs.

Functions§

init
Initializes the plugin.
open_path
Opens path with the program specified in with, or system default if None.
open_url
Opens URL with the program specified in with, or system default if None.
reveal_item_in_dir
Reveal a path in the system’s default explorer.
reveal_items_in_dir
Reveal multiple paths in the system’s default explorer.