diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-02-16 20:16:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-02-16 20:16:52 +0900 |
commit | fc885d70c1c3c49f2179f27477c3f257e8a4c489 (patch) | |
tree | 5f480d0a97f4b899a8666839404c71a7f541a383 /src/dolphin.cpp | |
parent | f571a09f282454cd186385a8b13f2418bffe7c68 (diff) | |
download | dolphin-fc885d70c1c3c49f2179f27477c3f257e8a4c489.tar.gz dolphin-fc885d70c1c3c49f2179f27477c3f257e8a4c489.zip |
Fixed handling of terminal application.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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() |