@tauri-apps/plugin-autostart
Automatically launch your application at startup.
Functions
Section titled “Functions”disable()
Section titled “disable()”function disable(): Promise<void>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/autostart/guest-js/index.ts#L52
Disables autostart for the application.
Returns
Section titled “Returns”Promise<void>
Example
Section titled “Example”import { disable } from '@tauri-apps/plugin-autostart';await disable();2.0.0
enable()
Section titled “enable()”function enable(): Promise<void>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/autostart/guest-js/index.ts#L38
Enables autostart for the application.
Returns
Section titled “Returns”Promise<void>
Example
Section titled “Example”import { enable } from '@tauri-apps/plugin-autostart';await enable();2.0.0
isEnabled()
Section titled “isEnabled()”function isEnabled(): Promise<boolean>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/autostart/guest-js/index.ts#L24
Checks whether autostart is enabled for the application.
Returns
Section titled “Returns”Promise<boolean>
A promise resolving to true if the application launches at startup, false otherwise.
Example
Section titled “Example”import { isEnabled } from '@tauri-apps/plugin-autostart';const enabled = await isEnabled();2.0.0
© 2026 Tauri Contributors. CC-BY / MIT