On some ML machines this doesn't work.
The code is using an undocumented API. We should try to incorporate this code directly (or a Ruby equivalent):
Nice. I'll see if I can use that, or migrated it to Ruby. Thank you @kainjow !
Ok made a fix for this. I moved my category code to a new repository and added it to the project as a submodule. Code seems to work just fine as a drop-in replacement.
Updated NSAppLoginItems, should be working now.