Bug 898370 - Disable crash reporting when running in metrodesktop mode. r=bbondy

This commit is contained in:
Jim Mathies 2013-07-26 12:19:55 -05:00
parent 1920e4e4f3
commit 5f3aa048fb

View File

@ -241,6 +241,9 @@ static int do_main(int argc, char* argv[], nsIFile *xreDirectory)
for (int idx = 1; idx < argc; idx++) {
if (IsArg(argv[idx], "metrodesktop")) {
metroOnDesktop = true;
// Disable crash reporting when running in metrodesktop mode.
char crashSwitch[] = "MOZ_CRASHREPORTER_DISABLE=1";
putenv(crashSwitch);
break;
}
}