Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Fix opening directory on first launch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Mar 27, 2015
1 parent bada95e commit 4780087
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ContainerHomeFolders.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ var ContainerHomeFolder = React.createClass({

if (hostVolume.indexOf(process.env.HOME) === -1) {
var volumes = _.clone(this.props.container.Volumes);
volumes[containerVolume] = path.join(util.home(), 'Kitematic', this.props.container.Name, containerVolume);
var newHostVolume = path.join(util.home(), 'Kitematic', this.props.container.Name, containerVolume);
volumes[containerVolume] = newHostVolume;
var binds = _.pairs(volumes).map(function (pair) {
return pair[1] + ':' + pair[0];
});
Expand All @@ -28,7 +29,7 @@ var ContainerHomeFolder = React.createClass({
console.log(err);
return;
}
shell.showItemInFolder(hostVolume);
shell.showItemInFolder(newHostVolume);
});
} else {
shell.showItemInFolder(hostVolume);
Expand Down

0 comments on commit 4780087

Please sign in to comment.