-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
platform: macOSstatus: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
The built in Tauri updater (and the official updater plugin for v2) fails with a cryptic error message for "Standard" users, meaning users that are not administrators on their Mac.
Reproduction
Screen.Recording.2023-10-25.at.13.50.01.mp4
- Create and login to a standard user on mac (not an administrator user).
- Download the next-newest version from https://github.com/spacedriveapp/spacedrive/releases (or any other popular tauri app)
- Install the app to /Applications, type in an administrator username and password when prompted by the OS
- Run the app and accept the update prompt
- Updater fails with "Tauri API error: Permission Denied (os error 13)"
Expected behavior
The scenario should be a first-class citizen, first of all - less cryptic error message, documented.
I have a working, semi tested version of the updater function for mac (#[cfg(target_os = "macos")] fn copy_files_and_run
) here:
0rvar@7c74051
Let me know if I should create a signed PR with this approach.
It prompts for elevated privileges if needed using Applescript. There are other approaches as well:
- Using
security_AuthorizationExecuteWithPrivileges
, but this has been deprecated for a very long time - Using SMJobless. No idea how that works
Platform and versions
Mac, any version
Metadata
Metadata
Assignees
Labels
platform: macOSstatus: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug