feat: add option to launch app at Windows startup
record-daemon / Build, check and test (push) Successful in 2m23s
record-daemon / Build, check and test (push) Successful in 2m23s
- Add tauri-plugin-autostart dependency to Cargo.toml - Add autostart permissions to capabilities/default.json - Initialize autostart plugin in lib.rs with LaunchAgent config - Add "Launch at Startup" toggle in Settings.vue Daemon tab with state management and async enable/disable functions
This commit is contained in:
@@ -395,6 +395,10 @@ fn get_video_metadata(video_path: String) -> Result<Value, String> {
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_autostart::init(
|
||||
tauri_plugin_autostart::MacosLauncher::LaunchAgent,
|
||||
Some(vec!["--hidden"]),
|
||||
))
|
||||
.setup(|app| {
|
||||
// Auto-start the record-daemon on app launch.
|
||||
// We spawn a background task so the UI isn't blocked while the
|
||||
|
||||
Reference in New Issue
Block a user