Bug 1182395 - Don't error out when -p is not given an argument in RemoteCommandLine. r=bsmedberg, a=lmandel
Leave it to the normal command line handling to handle the situation and display
the profile manager.
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -1783,18 +1783,18 @@ RemoteCommandLine(const char* aDesktopSt
const char *profile = 0;
nsAutoCString program(gAppData->remotingName);
ToLowerCase(program);
const char *username = getenv("LOGNAME");
ar = CheckArg("p", false, &profile, false);
if (ar == ARG_BAD) {
- PR_fprintf(PR_STDERR, "Error: argument -p requires a profile name\n");
- return REMOTE_ARG_BAD;
+ // Leave it to the normal command line handling to handle this situation.
+ return REMOTE_NOT_FOUND;
}
const char *temp = nullptr;
ar = CheckArg("a", true, &temp);
if (ar == ARG_BAD) {
PR_fprintf(PR_STDERR, "Error: argument -a requires an application name\n");
return REMOTE_ARG_BAD;
} else if (ar == ARG_FOUND) {