diff --git a/src/atom.coffee b/src/atom.coffee index af9d90c92..0c06c670f 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -251,6 +251,10 @@ class Atom getConfigDirPath: -> @configDirPath ?= fs.absolute('~/.atom') + # Public: Get the directory path to Atom's storage area. + getStorageDirPath: -> + @storageDirPath ?= path.join(@getConfigDirPath(), 'storage') + getWindowStatePath: -> switch @windowMode when 'spec' @@ -262,7 +266,7 @@ class Atom filename = "editor-#{sha1}" if filename - path.join(@config.userStoragePath, filename) + path.join(@getStorageDirPath(), filename) else null diff --git a/src/config.coffee b/src/config.coffee index 64a6e96cb..899b44be4 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -41,7 +41,6 @@ class Config if atom.getLoadSettings().devMode @packageDirPaths.unshift(path.join(@configDirPath, "dev", "packages")) @userPackageDirPaths = _.clone(@packageDirPaths) - @userStoragePath = path.join(@configDirPath, "storage") @defaultSettings = core: _.clone(require('./root-view').configDefaults)