#[Mac] Tauri updater getting error for some users: "Tauri API error: Permission Denied (os error 13)"
1 messages · Page 1 of 1 (latest)
How have those users installed your app? Do they drag it to /Applications?
Yes, it seems these users have used temporarily elevated permissions to drag the app into the root applications directory
/Applications is where the app is supposed to be moved into
And root perms aren't required for that right?
Unless they actually used root perms in the terminal and that somehow changed the file properties to be root only but that should also prevent them from starting right
If you are a standard user on Mac you do not have permissions to move the app there. It will prompt you for username and password of an admin user if you try
Currently leaning towards creating a fork of the tauri updater that uses the authorization API on Mac if needed
It’s quite rare to see this setup, where the user is not an administrator on their own Mac. I guess a big chunk of those is corporate managed computers
@hasty geyser this is a working implementation of what I'm talking about:
https://github.com/tauri-apps/tauri/commit/7c740516efaa4ff8b14b27c31d3c9a2cf54e21ed
Sparkle, the updater framework for swift/objc mac apps, uses a similar mechanism (but probably the C api instead)
When we move to v2, I’ll port this to the plugin and make a PR to upstream it if it’s something you’d like in the official plugin
can you file a github issue about this in the meantime please? I'd like to have the team members with more macos experience take a look at this.
I tried to repro it in my old vm where i had a non-admin user account for different tests back then, and i couldn't seem to repro the issue. Maybe i should try it on my macbook again but idk if i even can create new accounts there since it's a company one 🤔
@hasty geyser here's a quick screen recording, I just grabbed the first popular tauri app I could find, downloaded a version that is not latest, dragged to applications, started and accepted update.
The error message is the exact same error I've seen in my own app.
I'll create an issue now
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 ...
cool, thanks! i feel so stupid when something's related to macos 🙃
thanks for the issue too ❤️