Add smappservice option
At Hopp, we want our app to start automatically on user login. Initially, we used the tauri autostart plugin (which is using auto-launch), which does the job but we thought that user experience can be improved.
In particular we found the two notifications the user receives slightly annoying.
We didn't like them because
- They are two instead of just one when using a native API.
- It isn’t entirely clear from the pop-ups which app is being added to the login items.
To address these, I decided to make smappservice-rs, which is just a rust wrapper for macOS's ServiceManagement framework. When it is used instead of auto-launch it gives only one notification.
Initially I though of just extending the tauri autostart plugin, but the tauri folks proposed to upstream the change here (see https://github.com/tauri-apps/plugins-workspace/issues/2720).
This PR is incomplete (it is missing documentation changes), because I am not sure whether ignoring the app-name and path is acceptable when SMAppService is used.
Let me know what you think or whether you prefer a different approach.
Any ideas on this?