constructor (preferences, keybindings, userDataPath) {
    this._preferences = preferences
    this._keybindings = keybindings
    this._userDataPath = userDataPath

    this.RECENTS_PATH = path.join(userDataPath, RECENTLY_USED_DOCUMENTS_FILE_NAME)
    this.isOsxOrWindows = isOsx || isWindows
    this.activeWindowId = -1
    this.windowMenus = new Map()

    this._listenForIpcMain()
  }
@param {Preference} preferences The preferences instances.
@param {Keybindings} keybindings The keybindings instances.
@param {string} userDataPath The user data path.