constructor (userDataPath = '') {
    if (!userDataPath) {
      // Use default user data path.
      userDataPath = app.getPath('userData')
    }

    // Initialize environment paths
    super(userDataPath)

    // Changing the user data directory is only allowed during application bootstrap.
    app.setPath('userData', this._electronUserDataPath)
  }
Configure and sets all application paths.

@param {[string]} userDataPath The user data path or null.