     @requireUserInitScript() unless safeMode
 
     @menu.update()
-    @subscribe @config.onDidChange 'core.autoHideMenuBar', ({newValue}) =>
+    @disposables.add @config.onDidChange 'core.autoHideMenuBar', ({newValue}) =>
       @setAutoHideMenuBar(newValue)
     @setAutoHideMenuBar(true) if @config.get('core.autoHideMenuBar')
 


  # Notify the browser project of the window's current project path
  watchProjectPath: ->
    @subscribe @project.onDidChangePaths =>
      @constructor.updateLoadSetting('initialPaths', @project.getPaths())

  exit: (status) ->

        deprecate "The atom.syntax global is deprecated. Use atom.grammars instead."
        @grammars

    @disposables.add @packages.onDidActivateInitialPackages => @watchThemes()

    Project = require './project'
    TextBuffer = require 'text-buffer'
