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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/247/head
Michele Calgaro 2 years ago
parent d453995bef
commit 1f39afd8d1
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