Run Mac init code before the profile dialog is shown.