auto-launch icon indicating copy to clipboard operation
auto-launch copied to clipboard

Add smappservice option

Open iparaskev opened this issue 7 months ago • 1 comments

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.

system_events_permission system_events_notification

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.

iparaskev avatar May 27 '25 13:05 iparaskev

Any ideas on this?

iparaskev avatar Sep 14 '25 11:09 iparaskev