- Electron version: 0.37.7
- Operating system: Linux

I would like to be able to disable the gpu in my application code, not by having to pass an argument to electron.

I tried using both of these and neither work.

``` javascript
app.commandLine.appendSwitch("disable-gpu")
app.commandLine.appendArgument("disable-gpu")
```

Is there any other way to disable-gpu instead of passing this argument directly as `electron ./my-project --disable-gpu` ?

atom/browser/api/atom_api_app.h
net::SSLCertRequestInfo* cert_request_info,
      std::unique_ptr<content::ClientCertificateDelegate> delegate) override;
  
  void OnGpuProcessCrashed(base::TerminationStatus exit_code) override;
 private:
  
  base::FilePath GetPath(mate::Arguments* args, const std::string& name);
  void SetPath(mate::Arguments* args,
               const std::string& name,
               const base::FilePath& path);
  void SetDesktopName(const std::string& desktop_name);
  std::string GetLocale();
  bool MakeSingleInstance(
      const ProcessSingleton::NotificationCallback& callback);
  void ReleaseSingleInstance();
  bool Relaunch(mate::Arguments* args);
#if defined(USE_NSS_CERTS)
  void ImportCertificate(const base::DictionaryValue& options,
                         const net::CompletionCallback& callback);
#endif
  std::unique_ptr<ProcessSingleton> process_singleton_;
#if defined(USE_NSS_CERTS)
  std::unique_ptr<CertificateManagerModel> certificate_manager_model_;
#endif
  DISALLOW_COPY_AND_ASSIGN(App);
};
}  
}  
#endif