@jwz what happens if you exit() when detecting #1? iirc a .saver is like a dylib that gets loaded by the screensaver host process that you're trying to kill, not an entirely separate process.
you probably thought of that and i'm missing something, though.. or apple changed how it works?
@a Tried that, does not help. Calling exit() only kills legacyScreenSaver, but my theory is that WallpaperAgent is the true villain of the story.