getPath = name => {
  if (name === 'userData') {
    throw new Error('Do not use "getPath" for user data path!')
  }
  return app.getPath(name)
}
Returns a special directory path for the requested name.

NOTE: Do not use "userData" to get the user data path, instead use AppPaths!

@param {string} name The special directory name.
@returns {string} The resolved special directory path.