I have never seen the ‘restarter’ script. I’m sure one could be whipped up fairly fast though. Just not sure exactly if Spark has a way to force the login screen even when a user has autolog checked. I looked at possible arguments to pass to Spark and couldn’t see it there.
I haven’t a lot of time to look over it to much though. Maybe a patch and a script could be whipped up?
Not sure about the mac part. I’m not to familiar with Mac.
The issue on Macs, I think, is that open -a is an unreliable way to relaunch the application, particularly if multiple copies are installed. It’d be safer to get the actual path to the copy currently in use.