diff --git a/src/components/ContainerHomeFolders.react.js b/src/components/ContainerHomeFolders.react.js index 4f769ce766..cc62cd6a87 100644 --- a/src/components/ContainerHomeFolders.react.js +++ b/src/components/ContainerHomeFolders.react.js @@ -25,7 +25,7 @@ var ContainerHomeFolder = React.createClass({ }, (index) => { if (index === 0) { var volumes = _.clone(this.props.container.Volumes); - var newHostVolume = path.join(util.home(), 'Kitematic', this.props.container.Name, containerVolume); + var newHostVolume = path.join(util.home(), util.documents(), 'Kitematic', this.props.container.Name, containerVolume); volumes[containerVolume] = newHostVolume; var binds = _.pairs(volumes).map(function (pair) { if(util.isWindows()) { diff --git a/src/utils/Util.js b/src/utils/Util.js index 8d90f74166..60554439ab 100644 --- a/src/utils/Util.js +++ b/src/utils/Util.js @@ -39,6 +39,9 @@ module.exports = { home: function () { return process.env[this.isWindows() ? 'USERPROFILE' : 'HOME']; }, + documents: function () { + return this.isWindows() ? 'My\ Documents' : 'Documents'; + }, supportDir: function () { var dirs = ['Library', 'Application\ Support', 'Kitematic']; var acc = this.home();