How can an application determine if it was launched as a Startup Item on logging in to Mac OS or a usual way like (double)clicking it's icon?