title: Karma customLauncher configuration for Chrome/Chromium
body: <p>I have configured Karma to use Chrome for its test:</p>
  
  <pre><code>browsers: [ 'Chrome' ];
  </code></pre>
  
  <p>each time I run Karma it starts Chromium in some kind of default configuration which has hardware acceleration enabled.</p>
  
  <p>Hardware acceleration has some issues on my system and makes the browser rather unuseable so I would like it to be switched off by default. I have tried to turn it off in the settings, but my changes are not persistent and every time I restart Karma or the Browser the hardware acceleration is enabled again. </p>
  
  <p><strong>Is there any way I can create a <code>customLauncher</code> configuration for Chrome where I am able to deactivate hardware acceleration?</strong></p>
  
  <p>On a side note it would also be nice if I could use Google Chrome instead of Chromium, it seems that Karma always prefers Chromium if it's installed on the system.</p>
  
  <p>I have tried to create the following customLaunchers configuration, but it fails to load with an error:</p>
  
  <pre><code>customLaunchers: {
      Chrome_Persistent: {
          base: 'Chrome',
          chromeDataDir: path.resolve('.chrome')
      }
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <p>ERROR [config]: Error in config file!
   [ReferenceError: path is not defined]
  ReferenceError: path is not defined</p>