Closed glouel closed 4 years ago
Sorry, sandboxing is a mystery to me too :(
Sorry, sandboxing is a mystery to me too :(
No worries, thanks for taking the time to answer. I think I might just stop wasting time on those weird sandboxing restrictions on screensavers, and make a companion app that would itself update the screensaver file. I think I can still do that with sparkle though (I'm pretty sure I came accross the concept in 2.x or somewhere else), if you have any pointer feel free to share ! Thanks !
If you can put the screensaver bundle inside Resources of an companion app, it will get updated together with it. You might listen to update event to stop the screensaver before it gets overwritten.
If you can put the screensaver bundle inside Resources of an companion app, it will get updated together with it. You might listen to update event to stop the screensaver before it gets overwritten.
That's super helpful, I'll give this a shot. Thanks again for your time on this !
Hi !
This is a followup to this issue : https://github.com/sparkle-project/Sparkle/issues/1476
I thought I'd give a shot to 2.x/xpc branch to see if that solved the sandboxing issues introduced in Catalina for screensavers (which are now sandboxed in a very weird way by a container, more info in original issue). I followed this guide (https://christiantietze.de/posts/2019/06/sparkle-xpc-or-no/) and it all looked straightforward.
When launching the updater though, it correctly downloads then fail with that error :
Here's what I get in the Console :
So if I read that correctly, the host (legacyScreenSaver.appex) denies some auth thing ? I digged a bit into the code, found that it likely happens in SUInstallerLauncher.m, in :
I'm not 100% sure what those rights are, the code mentions that it should pop a system prompt (for authorizing xpc?) but I didn't see a thing. Any idea is appreciated, although I completely understand that this (a screensaver) is very much an edge case that Catalina put in a very weird state. Thanks !