diff options
Diffstat (limited to 'konsole')
-rw-r--r-- | konsole/konsole/konsole.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/konsole/konsole/konsole.cpp b/konsole/konsole/konsole.cpp index 0101ecab3..b6d5e1c69 100644 --- a/konsole/konsole/konsole.cpp +++ b/konsole/konsole/konsole.cpp @@ -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); |