diff options
author | Magnus Henoch <[email protected]> | 2013-02-15 17:13:27 +0000 |
---|---|---|
committer | Magnus Henoch <[email protected]> | 2013-02-15 17:19:08 +0000 |
commit | 4f44c1f5c023e82f646c0fca1edabd7cd460fc23 (patch) | |
tree | 173dc5f507ca7c2532555c0d158ca4becec74ad1 | |
parent | 499eef0cd693b2f96ec19148d2f6666c3df7d834 (diff) | |
download | otp-4f44c1f5c023e82f646c0fca1edabd7cd460fc23.tar.gz otp-4f44c1f5c023e82f646c0fca1edabd7cd460fc23.tar.bz2 otp-4f44c1f5c023e82f646c0fca1edabd7cd460fc23.zip |
Use "open" as default browser for crashdump viewer on Mac OS X
Running "open" on an HTTP URL will pass it to the system's configured
default browser.
-rw-r--r-- | lib/observer/src/crashdump_viewer.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/observer/src/crashdump_viewer.erl b/lib/observer/src/crashdump_viewer.erl index 3b8d17c7d9..64a8457d16 100644 --- a/lib/observer/src/crashdump_viewer.erl +++ b/lib/observer/src/crashdump_viewer.erl @@ -214,6 +214,7 @@ script_start([File]) -> DefaultBrowser = case os:type() of {win32,_} -> iexplore; + {unix,darwin} -> open; _ -> firefox end, script_start([File,DefaultBrowser]); @@ -277,8 +278,8 @@ usage() -> io:format( "\nusage: cdv file [ browser ]\n" "\tThe \'file\' must be an existing erlang crash dump.\n" - "\tDefault browser is \'iexplore\' (Internet Explorer) on Windows\n" - "\tor else \'firefox\'.\n", + "\tDefault browser is \'iexplore\' (Internet Explorer) on Windows,\n" + "\t\'open\' on Mac OS X, or else \'firefox\'.\n", []). |