Opener
This plugin allows you to open files and URLs in a specified, or the default, application. It also supports “revealing” files in the system’s file explorer.
Supported Platforms
This plugin requires a Rust version of at least 1.77.2
Platform | Level | Notes |
---|---|---|
windows | ||
linux | ||
macos | ||
android | | Only allows to open URLs via |
ios | | Only allows to open URLs via |
Setup
Install the opener plugin to get started.
Usage
The shell plugin is available in both JavaScript and Rust.
Note that app
is an instance of App
or AppHandle
.
Permissions
By default all potentially dangerous plugin commands and scopes are blocked and cannot be accessed. You must modify the permissions in your capabilities
configuration to enable these.
See the Capabilities Overview for more information and the step by step guide to use plugin permissions.
Default Permission
This permission set allows opening mailto:
, tel:
, https://
and http://
urls using their default application
as well as reveal file in directories using default file explorer
allow-open-url
allow-reveal-item-in-dir
allow-default-urls
Permission Table
Identifier | Description |
---|---|
|
This enables opening |
|
Enables the open_path command without any pre-configured scope. |
|
Denies the open_path command without any pre-configured scope. |
|
Enables the open_url command without any pre-configured scope. |
|
Denies the open_url command without any pre-configured scope. |
|
Enables the reveal_item_in_dir command without any pre-configured scope. |
|
Denies the reveal_item_in_dir command without any pre-configured scope. |
© 2025 Tauri Contributors. CC-BY / MIT