Konsole: fixed detection of root mc in session menu. This resolves issue #245.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1f39afd8d1)
r14.0.x
Michele Calgaro 2 years ago
parent 208a0a00b6
commit 3797492563
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -3434,6 +3434,7 @@ void Konsole::addSessionCommand(const TQString &path)
// try to locate the binary
TQString exec= co->readPathEntry("Exec");
exec.remove(TQRegExp("^(sudo )?su (- )?-c ?\'"));
exec.remove(TQRegExp("\'?$"));
exec = KRun::binaryName(exec, false);
exec = KShell::tildeExpand(exec);

Loading…
Cancel
Save