Autostart
Automatically launch your application at system startup.
Supported Platforms
- Windows
- Mac (via AppleScript or Launch Agent)
- Linux
Setup
Install the autostart plugin to get started.
Use your project’s package manager to add the dependency:
-
Run the following command in the
src-tauri
folder to add the plugin to the project’s dependencies inCargo.toml
: -
Modify
lib.rs
to initialize the plugin: -
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
Usage
The autostart plugin is available in both JavaScript and Rust.
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 configures if your application can enable or disable auto starting the application on boot.
Granted Permissions
It allows all to check, enable and disable the automatic start on boot.
allow-enable
allow-disable
allow-is-enabled
Permission Table
Identifier | Description |
---|---|
|
Enables the disable command without any pre-configured scope. |
|
Denies the disable command without any pre-configured scope. |
|
Enables the enable command without any pre-configured scope. |
|
Denies the enable command without any pre-configured scope. |
|
Enables the is_enabled command without any pre-configured scope. |
|
Denies the is_enabled command without any pre-configured scope. |
© 2024 Tauri Contributors. CC-BY / MIT