title: Electron: How to set a custom directory for user data (--user-data-dir)
body: <p>I want to set the --user-data-dir of my electron app to a custom directory, in my case, I would like it to default to a folder in the public directory so any users running the app will share the same asset directory.</p>
  
  <p>It doesn't seem like Electron's <a href="https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md" rel="noreferrer">appendSwitch()</a> function supports this (and didn't work when I tried), so i'm kind of lost on how to implement this switch.</p>