Merge pull request #80 from osbre/patch-1

docs(autostart): add import to `README.md` usage example
pull/81/head
Jonas Kruckenberg 2 years ago committed by GitHub
commit 8bee9e4716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,6 +38,8 @@ First you need to register the core plugin with Tauri:
`src-tauri/src/main.rs`
```rust
use tauri_plugin_autostart::MacosLauncher;
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec!["--flag1", "--flag2"]) /* arbitrary number of args to pass to your app */))

Loading…
Cancel
Save