aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2013-02-15 17:13:27 +0000
committerMagnus Henoch <[email protected]>2013-02-15 17:19:08 +0000
commit4f44c1f5c023e82f646c0fca1edabd7cd460fc23 (patch)
tree173dc5f507ca7c2532555c0d158ca4becec74ad1 /lib/observer
parent499eef0cd693b2f96ec19148d2f6666c3df7d834 (diff)
downloadotp-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.
Diffstat (limited to 'lib/observer')
-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",
[]).