aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-03-12 09:53:25 +0100
committerFredrik Gustafsson <[email protected]>2013-03-12 09:53:25 +0100
commitfbc6a824d8f9450087b2184c9ce6d03ef65da832 (patch)
tree4e8cbfcf4bb14fbfcfa293f24406829c0e7a6c97 /lib/observer/src
parent5bc09c6e23f05d8e784af8b79f710d97f345c773 (diff)
parentb0886901b568432c4cd56831ca3121c920d74097 (diff)
downloadotp-fbc6a824d8f9450087b2184c9ce6d03ef65da832.tar.gz
otp-fbc6a824d8f9450087b2184c9ce6d03ef65da832.tar.bz2
otp-fbc6a824d8f9450087b2184c9ce6d03ef65da832.zip
Merge branch 'mh/cdv-osx-default-browser/OTP-10929' into maint
* mh/cdv-osx-default-browser/OTP-10929: Added open on mac os to doc Use "open" as default browser for crashdump viewer on Mac OS X
Diffstat (limited to 'lib/observer/src')
-rw-r--r--lib/observer/src/crashdump_viewer.erl5
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",
[]).