Try to fix in a legal way (without private APIs) case with ROOT running Mac

machine without a login session.