{"action":"created","issue":{"url":"https://api.github.com/repos/YaoZeyuan/ZhihuHelp/issues/55","labels_url":"https://api.github.com/repos/YaoZeyuan/ZhihuHelp/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/YaoZeyuan/ZhihuHelp/issues/55/comments","events_url":"https://api.github.com/repos/YaoZeyuan/ZhihuHelp/issues/55/events","html_url":"https://github.com/YaoZeyuan/ZhihuHelp/pull/55","id":127397576,"number":55,"title":"之前一直在用 windows,刚在 Mac 试了一下,用 webbrowser.open()函数是不会自动打开图片的,我改成 webbro…","user":{"login":"knarfeh","id":6964284,"avatar_url":"https://avatars.githubusercontent.com/u/6964284?v=3","gravatar_id":"","url":"https://api.github.com/users/knarfeh","html_url":"https://github.com/knarfeh","followers_url":"https://api.github.com/users/knarfeh/followers","following_url":"https://api.github.com/users/knarfeh/following{/other_user}","gists_url":"https://api.github.com/users/knarfeh/gists{/gist_id}","starred_url":"https://api.github.com/users/knarfeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knarfeh/subscriptions","organizations_url":"https://api.github.com/users/knarfeh/orgs","repos_url":"https://api.github.com/users/knarfeh/repos","events_url":"https://api.github.com/users/knarfeh/events{/privacy}","received_events_url":"https://api.github.com/users/knarfeh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-19T09:07:59Z","updated_at":"2016-01-19T15:45:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/YaoZeyuan/ZhihuHelp/pulls/55","html_url":"https://github.com/YaoZeyuan/ZhihuHelp/pull/55","diff_url":"https://github.com/YaoZeyuan/ZhihuHelp/pull/55.diff","patch_url":"https://github.com/YaoZeyuan/ZhihuHelp/pull/55.patch"},"body":"…wser.open_new_tab 之后,会自动打开,但是是后台打开的,不会自动跳转到 firefox浏览器,我觉得这样对 Mac 用户不太友好啊,我的想法是按平台分开,windows 就用浏览器打开,其他平台用图片预览器打开,你觉得怎么样?"},"comment":{"url":"https://api.github.com/repos/YaoZeyuan/ZhihuHelp/issues/comments/172893215","html_url":"https://github.com/YaoZeyuan/ZhihuHelp/pull/55#issuecomment-172893215","issue_url":"https://api.github.com/repos/YaoZeyuan/ZhihuHelp/issues/55","id":172893215,"user":{"login":"YaoZeyuan","id":7150325,"avatar_url":"https://avatars.githubusercontent.com/u/7150325?v=3","gravatar_id":"","url":"https://api.github.com/users/YaoZeyuan","html_url":"https://github.com/YaoZeyuan","followers_url":"https://api.github.com/users/YaoZeyuan/followers","following_url":"https://api.github.com/users/YaoZeyuan/following{/other_user}","gists_url":"https://api.github.com/users/YaoZeyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/YaoZeyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaoZeyuan/subscriptions","organizations_url":"https://api.github.com/users/YaoZeyuan/orgs","repos_url":"https://api.github.com/users/YaoZeyuan/repos","events_url":"https://api.github.com/users/YaoZeyuan/events{/privacy}","received_events_url":"https://api.github.com/users/YaoZeyuan/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T15:45:56Z","updated_at":"2016-01-19T15:45:56Z","body":"我同学在Mac上试了一下，他那边是直接报错，而且不打开图片。我今晚下个Mac虚拟机，明晚装上试试，看样子Mac应该是只能通过`open`打开图片\r\n\r\n另外上午代码可以改成这样。原先的代码如果打开文件失败还是会打开一个浏览器界面，但先get()再打开就没这个问题了：）\r\n```\r\nwebbrowser.get().open(u'file:///' + captcha_path)\r\n```"}}