mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
The installer can now inherit privileges from the updater, which inherits privileges from the process that spawns the updater. As such, we can now run the updater & installer as root, and no authorization dialog can prompt up. The installer now must abort or install if the target app has terminated. Zombie processes will no longer stay around. Because the root user has no trash directory, we ignore logging the error if it was not found. We also avoid invoking mdimport which fails as root on the installed app. mdimport may have been used before for updating mdimporter files, however, it should be the developer's responsibility to ensure their mdimporter files have an updated date stamp, which will work if a user updates an app manually. Other than that, we already touch the app to register it with LaunchServices, so that should suffice.