I don't like how this is done, but I don't like any part of how the
emulators are handled right now. At least the mess is in the right spot
now, save for the thing that conditionally execs a login shell to make
sure gsport groups take effect at the end. That whole restart thing is
also a mess I haven't thought about yet.