Commit 34ad14c8 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Allow /bin/sh as a profile command

This patch committed in master adds new strings.   Adriaan and I
basically came up with the same patch.
This error was a result of fa398f56
which had a logic error in it.

BUG: 436242
FIXED-IN: 21.04.2
parent 585f9a56
......@@ -472,13 +472,15 @@ void Session::run()
}
}
// if none of the choices are available, print a warning
if (exec.isEmpty()) {
terminalWarning(i18n("Could not find an interactive shell to start."));
return;
}
// if a program was specified via setProgram(), but it couldn't be found, print a warning
if (exec != checkProgram(_program)) {
terminalWarning(i18n("Could not find '%1', starting '%2' instead. Please check your profile settings.", _program, exec));
// if none of the choices are available, print a warning
} else if (programs.last() == checkProgram(exec)) {
terminalWarning(i18n("Could not find an interactive shell to start."));
return;
}
// if no arguments are specified, fall back to program name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment