From 4f44c1f5c023e82f646c0fca1edabd7cd460fc23 Mon Sep 17 00:00:00 2001
From: Magnus Henoch
Date: Fri, 15 Feb 2013 17:13:27 +0000
Subject: 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.
---
lib/observer/src/crashdump_viewer.erl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'lib/observer')
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",
[]).
--
cgit v1.2.3
From b0886901b568432c4cd56831ca3121c920d74097 Mon Sep 17 00:00:00 2001
From: Fredrik Gustafsson
Date: Mon, 11 Mar 2013 15:09:58 +0100
Subject: Added open on mac os to doc
---
lib/observer/doc/src/crashdump_ug.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'lib/observer')
diff --git a/lib/observer/doc/src/crashdump_ug.xml b/lib/observer/doc/src/crashdump_ug.xml
index dc65fe5b39..8b60f6ee98 100644
--- a/lib/observer/doc/src/crashdump_ug.xml
+++ b/lib/observer/doc/src/crashdump_ug.xml
@@ -48,8 +48,8 @@
Information which shows a short summary of the information in
the crashdump.
- The default browser is Internet Explorer on Windows or else
- Firefox. To use another browser, give the browser's start command
+
The default browser is Internet Explorer on Windows, open on Mac OS X,
+ or else Firefox. To use another browser, give the browser's start command
as the second argument to cdv. If the given browser name is
not known to Crashdump Viewer, the browser argument is executed as
a command with the start URL as the only argument.
--
cgit v1.2.3