diff options
author | Michele Calgaro <[email protected]> | 2020-02-16 20:16:52 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-02-16 20:30:31 +0900 |
commit | 120eb33de2682def56107f8e176d3f6587b75841 (patch) | |
tree | 113dc46753b34b73fdeed5ce127658ca91491c84 /src/dolphin.cpp | |
parent | ad707a425f28c6a7c332a62ed6c69512317762bf (diff) | |
download | dolphin-120eb33de2682def56107f8e176d3f6587b75841.tar.gz dolphin-120eb33de2682def56107f8e176d3f6587b75841.zip |
Fixed handling of terminal application.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit fc885d70c1c3c49f2179f27477c3f257e8a4c489)
Diffstat (limited to 'src/dolphin.cpp')
-rw-r--r-- | src/dolphin.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/dolphin.cpp b/src/dolphin.cpp index f9e984d..747eb93 100644 --- a/src/dolphin.cpp +++ b/src/dolphin.cpp @@ -50,6 +50,7 @@ #include <tdemessagebox.h> #include <kservice.h> #include <kstandarddirs.h> +#include <kprocess.h> #include <krun.h> #include <tqclipboard.h> @@ -922,11 +923,14 @@ void Dolphin::goHome() void Dolphin::openTerminal() { - TQString command("konsole --workdir \""); - command.append(m_activeView->url().path()); - command.append('\"'); + TDEConfig * config = kapp->config(); + config->setGroup("General"); + TQString term = config->readPathEntry("TerminalApplication", "konsole"); - KRun::runCommand(command, "Konsole", "konsole"); + TDEProcess proc; + proc << term; + proc.setWorkingDirectory(m_activeView->url().path()); + proc.start(TDEProcess::DontCare); } void Dolphin::findFile() |