- 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/browser.h
std::string GetExecutableFileProductName() const;
  
  void NotifyAndShutdown();
  
  bool HandleBeforeQuit();
  bool is_quiting_;
 private:
  
  void OnWindowCloseCancelled(NativeWindow* window) override;
  void OnWindowAllClosed() override;
  
  base::ObserverList<BrowserObserver> observers_;
  
  bool is_exiting_;
  
  bool is_ready_;
  
  bool is_shutdown_;
  std::string version_override_;
  std::string name_override_;
  int badge_count_ = 0;
#if defined(OS_WIN)
  base::string16 app_user_model_id_;
#endif
  DISALLOW_COPY_AND_ASSIGN(Browser);
};
}  
#endif