diff options
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() |