Auto-Start on User Login/Boot #2576
-
Is there any guide for Tauri apps to register with the OS to start with boot? There is an npm module designed to work for Electron: https://www.npmjs.com/package/auto-launch I think a proper implementation would make sense for Tauri in Rust. Can someone point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Edit: Seems like we want to integrate it into tauri directly. Tracking issue: #2589 afaik there is no guide or example, not even a general crate. For example this one more or less tries to translate the functionality of the referenced package into rust, so it should give general ideas on how to do stuff: https://github.com/vn971/timeplot/blob/master/src/autostart.rs (doesn't look perfect, but it's the first thing i found :P ) Sounds like a nice opportunity for a community plugin to me. |
Beta Was this translation helpful? Give feedback.
-
For anyone who is looking for a solution. Here is our first revision, working on Windows, Macos, Linux. It's not tested in production yet and not properly wrapped up as a tauri plugin but if anyone in the community would like to work on an autolaunch Tauri plugin this code would be good to study for an integration. https://github.com/subspace/desktop-farmer/blob/main/src/lib/autoLauncher.ts |
Beta Was this translation helpful? Give feedback.
-
Hey everyone I just solved this rather quickly by using the My changes (tested on Linux & macos): ethui/ethui#519 Keep in mind that for linux, this has various levels of support. it works by creating a file in |
Beta Was this translation helpful? Give feedback.
-
https://github.com/tauri-apps/plugins-workspace/tree/v1/plugins/autostart |
Beta Was this translation helpful? Give feedback.
Edit: Seems like we want to integrate it into tauri directly. Tracking issue: #2589
afaik there is no guide or example, not even a general crate.
But it should be quite straight forward to implement it in rust, as long as you don't need App Store compliance.
Basically you just have to copy a small file to a specific folder:
For example this one more or less tries to translate the functionality of the referenced package into rust, so it should give general ideas on how to do stuff: https://github.com/vn971/timeplot/blob/master/src/autostart.rs (doesn't look perfect, but it's the first thing i found :P )
Sounds like a nice opportunity for a community plugin to me.