- Electron version: 1.2.3
- Operating system: OSX 10.11.3

On OSX there is an option to hide an application that's launched automatically on login `Users & Groups > Login Items`. Electron app does not respect this option and displays the main renderer window when launched at login. 

Is there a way to detect either
- that the app was launched at login, or
- that the app was hidden at launch

?

atom/browser/api/atom_api_app.cc
if (name == "appData")
    return brightray::DIR_APP_DATA;
  else if (name == "userData")
    return brightray::DIR_USER_DATA;
  else if (name == "cache")
    return brightray::DIR_CACHE;
  else if (name == "userCache")
    return brightray::DIR_USER_CACHE;
  else if (name == "home")
    return base::DIR_HOME;
  else if (name == "temp")
    return base::DIR_TEMP;
  else if (name == "userDesktop" || name == "desktop")
    return base::DIR_USER_DESKTOP;
  else if (name == "exe")
    return base::FILE_EXE;
  else if (name == "module")
    return base::FILE_MODULE;
  else if (name == "documents")
    return chrome::DIR_USER_DOCUMENTS;