diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-10 22:40:13 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-10 22:40:13 +0900 |
commit | 1f39afd8d12daf963fc0e21156b38c67b396dd9a (patch) | |
tree | 32588c454d79f144b88a81d3c9570886301a0a2c | |
parent | d453995bef6df5806beac97663cce70ea928b745 (diff) | |
download | tdebase-1f39afd8d12daf963fc0e21156b38c67b396dd9a.tar.gz tdebase-1f39afd8d12daf963fc0e21156b38c67b396dd9a.zip |
Konsole: fixed detection of root mc in session menu. This resolves issue #245.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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); |