From: GiWoong Kim Date: Fri, 31 Oct 2014 12:08:21 +0000 (+0900) Subject: menu: execute an external process as detached mode X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46922ea0de70e7b8e20b5666c0129d5df16ce8f6;p=sdk%2Femulator%2Fqemu.git menu: execute an external process as detached mode Detached mode when I use the class method startDetached(). If the process being run request a console, Windows provides a console windows for it. Change-Id: I4f5fedd0cd69238e681594565ec542770ad988a6 Signed-off-by: GiWoong Kim --- diff --git a/tizen/src/ui/menu/contextmenu.cpp b/tizen/src/ui/menu/contextmenu.cpp index 608debc369..aebfac4eba 100644 --- a/tizen/src/ui/menu/contextmenu.cpp +++ b/tizen/src/ui/menu/contextmenu.cpp @@ -397,8 +397,7 @@ void ContextMenu::slotShell() qDebug() << command << arguments; try { - QProcess *terminal = new QProcess(this); - terminal->start(command, arguments); + QProcess::startDetached(command, arguments); } catch (QString error) { QString msg = "Failed to open Shell : " + error; qDebug() << msg; @@ -445,7 +444,7 @@ void ContextMenu::slotControlPanel() QString command; #ifdef CONFIG_WIN32 - command = "java.exe"; + command = "javaw.exe"; #else command = "java"; #endif @@ -456,8 +455,7 @@ void ContextMenu::slotControlPanel() qDebug() << command << arguments; try { - QProcess *terminal = new QProcess(this); - terminal->start(command, arguments); + QProcess::startDetached(command, arguments); } catch (QString error) { QString msg = "Failed to open Control Panel : " + error; qDebug() << msg;