#[Mac] Tauri updater getting error for some users: "Tauri API error: Permission Denied (os error 13)"

1 messages · Page 1 of 1 (latest)

rapid echo
#

For most users, updating just works. But some users are getting: "Tauri API error: Permission Denied (os error 13)".
Is this a known issue with a known workaround?

amber badge
#

How have those users installed your app? Do they drag it to /Applications?

rapid echo
hasty geyser
#

/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

rapid echo
#

Currently leaning towards creating a fork of the tauri updater that uses the authorization API on Mac if needed

rapid echo
#

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

rapid echo
rapid echo
#

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

hasty geyser
#

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 🤔

rapid echo
#

@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

hasty geyser
hasty geyser