Skip to main content

init

Function init 

Source
pub fn init<R: Runtime>() -> TauriPlugin<R, Option<Config>>
Expand description

Initializes the shell plugin.

The plugin state can be accessed with ShellExt::shell, and all spawned child processes are killed when the application exits.

ยงExamples

fn setup<R: tauri::Runtime>(builder: tauri::Builder<R>) -> tauri::Builder<R> {
    builder.plugin(tauri_plugin_shell::init())
}