feat: add option to launch app at Windows startup
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:
2026-06-15 20:10:49 +02:00
parent ba4ed63f4c
commit 45aac067f8
4 changed files with 128 additions and 8 deletions
+4
View File
@@ -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