{"action":"created","issue":{"url":"https://api.github.com/repos/docker/kitematic/issues/1448","repository_url":"https://api.github.com/repos/docker/kitematic","labels_url":"https://api.github.com/repos/docker/kitematic/issues/1448/labels{/name}","comments_url":"https://api.github.com/repos/docker/kitematic/issues/1448/comments","events_url":"https://api.github.com/repos/docker/kitematic/issues/1448/events","html_url":"https://github.com/docker/kitematic/pull/1448","id":131769113,"number":1448,"title":"Use which to find docker-machine","user":{"login":"StefanScherer","id":207759,"avatar_url":"https://avatars.githubusercontent.com/u/207759?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanScherer","html_url":"https://github.com/StefanScherer","followers_url":"https://api.github.com/users/StefanScherer/followers","following_url":"https://api.github.com/users/StefanScherer/following{/other_user}","gists_url":"https://api.github.com/users/StefanScherer/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanScherer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanScherer/subscriptions","organizations_url":"https://api.github.com/users/StefanScherer/orgs","repos_url":"https://api.github.com/users/StefanScherer/repos","events_url":"https://api.github.com/users/StefanScherer/events{/privacy}","received_events_url":"https://api.github.com/users/StefanScherer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T22:02:51Z","updated_at":"2016-02-29T12:09:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/kitematic/pulls/1448","html_url":"https://github.com/docker/kitematic/pull/1448","diff_url":"https://github.com/docker/kitematic/pull/1448.diff","patch_url":"https://github.com/docker/kitematic/pull/1448.patch"},"body":"I started to build a [Chocolatey package for Kitematic](https://github.com/stefanScherer/choco-kitematic). But installing VirtualBox, docker-machine and then Kitematic through `choco install` doesn't work yet.\r\n\r\nThe problem is that Kitematic searches the `docker-machine` binary only with the environment variable `DOCKER_TOOLBOX_INSTALL_PATH`. After installing `docker-machine` with `choco install docker-machine` it is in the user's PATH.\r\n\r\nSo I enhanced the check to find `docker-machine` in the PATH if no such environment variable is set. The environment variable still has priority over the PATH to keep the same behaviour using the Docker Toolbox.\r\n\r\nFor Linux the `docker-machine` binary also is searched in PATH so it could be put to another place (perhaps someone compiles it from Go sources).\r\n"},"comment":{"url":"https://api.github.com/repos/docker/kitematic/issues/comments/190187688","html_url":"https://github.com/docker/kitematic/pull/1448#issuecomment-190187688","issue_url":"https://api.github.com/repos/docker/kitematic/issues/1448","id":190187688,"user":{"login":"xslim","id":47062,"avatar_url":"https://avatars.githubusercontent.com/u/47062?v=3","gravatar_id":"","url":"https://api.github.com/users/xslim","html_url":"https://github.com/xslim","followers_url":"https://api.github.com/users/xslim/followers","following_url":"https://api.github.com/users/xslim/following{/other_user}","gists_url":"https://api.github.com/users/xslim/gists{/gist_id}","starred_url":"https://api.github.com/users/xslim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xslim/subscriptions","organizations_url":"https://api.github.com/users/xslim/orgs","repos_url":"https://api.github.com/users/xslim/repos","events_url":"https://api.github.com/users/xslim/events{/privacy}","received_events_url":"https://api.github.com/users/xslim/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T12:09:38Z","updated_at":"2016-02-29T12:09:38Z","body":"I vote to include this PR. On Mac, I install docker via Homebrew. And it installs `docker-machine` in the Homebrew path..."}}