Shell
Ce contenu n’est pas encore disponible dans votre langue.
Access the system shell. Allows you to spawn child processes and manage files and URLs using their default application.
Supported Platforms
- Windows
- Linux
- macOS
Setup
This plugin requires a Rust version of at least 1.75
Install the shell plugin to get started.
Use your project’s package manager to add the dependency:
-
Install the shell plugin by adding the following to your
Cargo.toml
file: -
Modify
lib.rs
to initialize the plugin: -
Install the JavaScript Guest bindings using your preferred JavaScript package manager:
Usage
The shell plugin is available in both JavaScript and Rust.
Permissions
By default all plugin commands are blocked and cannot be accessed. You must define a list of permissions in your capabilities
configuration.
See Access Control List for more information.
Permission | Description |
---|---|
shell:allow-execute | Enables the execute command without any pre-configured scope. |
shell:deny-execute | Denies the execute command without any pre-configured scope. |
shell:allow-kill | Enables the kill command without any pre-configured scope. |
shell:deny-kill | Denies the kill command without any pre-configured scope. |
shell:allow-open | Enables the open command without any pre-configured scope. |
shell:deny-open | Denies the open command without any pre-configured scope. |
shell:allow-stdin-write | Enables the stdin_write command without any pre-configured scope. |
shell:deny-stdin-write | Denies the stdin_write command without any pre-configured scope. |
© 2024 Tauri Contributors. CC-BY / MIT