{"action":"created","issue":{"url":"https://api.github.com/repos/apiaryio/apiary-client/issues/105","labels_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/105/comments","events_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/105/events","html_url":"https://github.com/apiaryio/apiary-client/pull/105","id":120043104,"number":105,"title":"Preview command uses OS' native files opener","user":{"login":"tsusanka","id":1835345,"avatar_url":"https://avatars.githubusercontent.com/u/1835345?v=3","gravatar_id":"","url":"https://api.github.com/users/tsusanka","html_url":"https://github.com/tsusanka","followers_url":"https://api.github.com/users/tsusanka/followers","following_url":"https://api.github.com/users/tsusanka/following{/other_user}","gists_url":"https://api.github.com/users/tsusanka/gists{/gist_id}","starred_url":"https://api.github.com/users/tsusanka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsusanka/subscriptions","organizations_url":"https://api.github.com/users/tsusanka/orgs","repos_url":"https://api.github.com/users/tsusanka/repos","events_url":"https://api.github.com/users/tsusanka/events{/privacy}","received_events_url":"https://api.github.com/users/tsusanka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T21:47:27Z","updated_at":"2015-12-02T23:01:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apiaryio/apiary-client/pulls/105","html_url":"https://github.com/apiaryio/apiary-client/pull/105","diff_url":"https://github.com/apiaryio/apiary-client/pull/105.diff","patch_url":"https://github.com/apiaryio/apiary-client/pull/105.patch"},"body":"Uses https://github.com/rdp/os \r\nCloses #101"},"comment":{"url":"https://api.github.com/repos/apiaryio/apiary-client/issues/comments/161461161","html_url":"https://github.com/apiaryio/apiary-client/pull/105#issuecomment-161461161","issue_url":"https://api.github.com/repos/apiaryio/apiary-client/issues/105","id":161461161,"user":{"login":"jrep","id":105675,"avatar_url":"https://avatars.githubusercontent.com/u/105675?v=3","gravatar_id":"","url":"https://api.github.com/users/jrep","html_url":"https://github.com/jrep","followers_url":"https://api.github.com/users/jrep/followers","following_url":"https://api.github.com/users/jrep/following{/other_user}","gists_url":"https://api.github.com/users/jrep/gists{/gist_id}","starred_url":"https://api.github.com/users/jrep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrep/subscriptions","organizations_url":"https://api.github.com/users/jrep/orgs","repos_url":"https://api.github.com/users/jrep/repos","events_url":"https://api.github.com/users/jrep/events{/privacy}","received_events_url":"https://api.github.com/users/jrep/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T23:01:13Z","updated_at":"2015-12-02T23:01:13Z","body":"Perhaps also this?\r\n\r\n```\r\ndiff --git a/lib/apiary/command/preview.rb b/lib/apiary/command/preview.rb\r\nindex 276ac23..12ad82f 100644\r\n--- a/lib/apiary/command/preview.rb\r\n+++ b/lib/apiary/command/preview.rb\r\n@@ -132,7 +132,7 @@ module Apiary\r\n       private\r\n \r\n       def browser_options\r\n-        \"-a #{BROWSERS[@options.browser.to_sym]}\" if @options.browser\r\n+        \"-a #{BROWSERS[@options.browser.to_sym]}\" if @options.browser && OS.x?\r\n       end\r\n     end\r\n   end\r\n```\r\n\r\nThe \"-a browsername\" for is definitely OSX-specific.\r\n\r\n`xdg-open` (Linux) doesn't seem to provide anything meaningful for browser_options.\r\n\r\nI don't know about `start` (Windows)."}}