From a67ce84af8ee8aec655872dbb23e197938ecbbb5 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 30 Apr 2015 14:03:19 -0400 Subject: [PATCH] Fixing bug in support dir function --- src/stores/SetupStore.js | 1 + src/utils/Util.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/SetupStore.js b/src/stores/SetupStore.js index 331eeabcb4..3ba6dd9e84 100644 --- a/src/stores/SetupStore.js +++ b/src/stores/SetupStore.js @@ -240,6 +240,7 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), { metrics.track('Setup Failed', { step: _currentStep, }); + console.log(err); bugsnag.notify('SetupError', err.message, { error: err, output: err.message diff --git a/src/utils/Util.js b/src/utils/Util.js index 5205c23252..243e9b5c8b 100644 --- a/src/utils/Util.js +++ b/src/utils/Util.js @@ -40,13 +40,14 @@ module.exports = { }, supportDir: function () { var dirs = ['Library', 'Application\ Support', 'Kitematic']; - var acc = process.env.HOME; + var acc = this.home(); dirs.forEach(function (d) { acc = path.join(acc, d); if (!fs.existsSync(acc)) { fs.mkdirSync(acc); } }); + return acc; }, CommandOrCtrl: function () { return this.isWindows() ? 'Ctrl' : 'Command';