LnL7 / nix-darwin

nix modules for darwin
MIT License
2.76k stars 428 forks source link

Google Chrome Canary cask installed via Nix will not auto-update #1030

Open victorhooi opened 1 month ago

victorhooi commented 1 month ago

I have a macOS machine, with Nix, and Nix-darwin setup (using these templates).

I've just added the Google Chrome Canary cask to my system.

However, I've noticed that the app will not auto-update itself due to an error:

CleanShot 2024-08-07 at 10 05 35@2x

From what I can tell - it seems to be a permissions error:

https://support.google.com/chrome/thread/253456872/chrome-update-failed-error-code-9-extra-code-0?hl=en

The Google Chrome Canary app seems to have been installed with the wrong permissions for the auto-updater:

 ls -lah /Applications | grep Chrome
drwxr-xr-x@  3 foobar  staff    96B May 28 04:22 Google Chrome Canary.app
drwxr-xr-x@  3 root       wheel    96B Jul 30 09:17 Google Chrome.app
bytedance@H36H4NQQKK /Applications>

The Google Chrome app was installed normally, whilst the Google Chrome Canary app was installed using Nix, via a Homebrew cask.

Do you know if it's possible to fix it, so that it copies it with the correct permissions please?

bnjmnt4n commented 3 weeks ago

It's unlikely that this has anything to do with Nix/nix-darwin, since it was installed via Homebrew. Perhaps you could try to remove/re-add the cask and uninstall/reinstall the application.