{"action":"created","issue":{"url":"https://api.github.com/repos/micahflee/onionshare/issues/258","repository_url":"https://api.github.com/repos/micahflee/onionshare","labels_url":"https://api.github.com/repos/micahflee/onionshare/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/micahflee/onionshare/issues/258/comments","events_url":"https://api.github.com/repos/micahflee/onionshare/issues/258/events","html_url":"https://github.com/micahflee/onionshare/issues/258","id":126050474,"number":258,"title":"Weird /tmp usage in hs.py","user":{"login":"jvoisin","id":325724,"avatar_url":"https://avatars.githubusercontent.com/u/325724?v=3","gravatar_id":"","url":"https://api.github.com/users/jvoisin","html_url":"https://github.com/jvoisin","followers_url":"https://api.github.com/users/jvoisin/followers","following_url":"https://api.github.com/users/jvoisin/following{/other_user}","gists_url":"https://api.github.com/users/jvoisin/gists{/gist_id}","starred_url":"https://api.github.com/users/jvoisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvoisin/subscriptions","organizations_url":"https://api.github.com/users/jvoisin/orgs","repos_url":"https://api.github.com/users/jvoisin/repos","events_url":"https://api.github.com/users/jvoisin/events{/privacy}","received_events_url":"https://api.github.com/users/jvoisin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-11T22:20:03Z","updated_at":"2016-03-19T11:56:35Z","closed_at":null,"body":"In the `hs.py` file, there is this:\r\n```\r\n                path = '/tmp/onionshare'\r\n                try:\r\n                    if not os.path.exists(path):\r\n                        os.makedirs(path, 0700)\r\n                except:\r\n                    raise HSDirError(strings._(\"error_hs_dir_cannot_create\").format(path))\r\n                if not os.access(path, os.W_OK):\r\n                    raise HSDirError(strings._(\"error_hs_dir_not_writable\").format(path))\r\n\r\n                self.hidserv_dir = tempfile.mkdtemp(dir=path)\r\n```\r\n\r\nWhy specifying `/tmp/onionshare` instead of letting `mkdtemp` decide?"},"comment":{"url":"https://api.github.com/repos/micahflee/onionshare/issues/comments/198689321","html_url":"https://github.com/micahflee/onionshare/issues/258#issuecomment-198689321","issue_url":"https://api.github.com/repos/micahflee/onionshare/issues/258","id":198689321,"user":{"login":"jvoisin","id":325724,"avatar_url":"https://avatars.githubusercontent.com/u/325724?v=3","gravatar_id":"","url":"https://api.github.com/users/jvoisin","html_url":"https://github.com/jvoisin","followers_url":"https://api.github.com/users/jvoisin/followers","following_url":"https://api.github.com/users/jvoisin/following{/other_user}","gists_url":"https://api.github.com/users/jvoisin/gists{/gist_id}","starred_url":"https://api.github.com/users/jvoisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvoisin/subscriptions","organizations_url":"https://api.github.com/users/jvoisin/orgs","repos_url":"https://api.github.com/users/jvoisin/repos","events_url":"https://api.github.com/users/jvoisin/events{/privacy}","received_events_url":"https://api.github.com/users/jvoisin/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T11:56:35Z","updated_at":"2016-03-19T11:56:35Z","body":"Support only the version packaged in the latest Tails - 1 ?"}}