- 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.cc
CertificateManagerModel* model,
    const base::DictionaryValue& options) {
  std::string file_data, cert_path;
  base::string16 password;
  net::CertificateList imported_certs;
  int rv = -1;
  options.GetString("certificate", &cert_path);
  options.GetString("password", &password);
  if (!cert_path.empty()) {
    if (base::ReadFileToString(base::FilePath(cert_path), &file_data)) {
      auto module = model->cert_db()->GetPublicModule();
      rv = model->ImportFromPKCS12(module,
                                   file_data,
                                   password,
                                   true,
                                   &imported_certs);
      if (imported_certs.size() > 1) {
        auto it = imported_certs.begin();
        ++it;  
        for (; it != imported_certs.end(); ++it)
          rv &= model->SetCertTrust(it->get(),
                                    net::CA_CERT,
                                    net::NSSCertDatabase::TRUSTED_SSL);
      }
    }
  }
  return rv;
}
#endif
}