summaryrefslogtreecommitdiffstats
path: root/konsole
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-12-10 22:40:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-12-10 23:08:35 +0900
commit3797492563155a14be6c5cffb9470e709f14b3e4 (patch)
tree3bb1f530e419d52d09aca44a3f44a2dfa615a65b /konsole
parent208a0a00b60a7a18c378a392b12c881310f69126 (diff)
downloadtdebase-3797492563155a14be6c5cffb9470e709f14b3e4.tar.gz
tdebase-3797492563155a14be6c5cffb9470e709f14b3e4.zip
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 1f39afd8d12daf963fc0e21156b38c67b396dd9a)
Diffstat (limited to 'konsole')
-rw-r--r--konsole/konsole/konsole.cpp1
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);