From 5abb22ae2ef8ec3450e6491ceee101a164ce3978 Mon Sep 17 00:00:00 2001 From: Munkyu Im Date: Fri, 4 Sep 2015 18:23:21 +0900 Subject: [PATCH] sdb: convert to native separator for windows, convert slash to reverse slash. Change-Id: I2a049bcb8addf5be0dc8bb11b7bca8e7fa2692d8 Signed-off-by: Munkyu Im --- tizen/src/ui/menu/shellopener.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tizen/src/ui/menu/shellopener.cpp b/tizen/src/ui/menu/shellopener.cpp index a39e1bb9f8..76ebb50e4b 100644 --- a/tizen/src/ui/menu/shellopener.cpp +++ b/tizen/src/ui/menu/shellopener.cpp @@ -36,12 +36,13 @@ extern "C" { ShellOpener::ShellOpener() { - sdbPath = QCoreApplication::applicationDirPath(); + QString tmpSdbPath = QCoreApplication::applicationDirPath(); #ifdef CONFIG_WIN32 - sdbPath += "\\..\\..\\..\\..\\..\\tools\\ansicon.exe"; + tmpSdbPath += "\\..\\..\\..\\..\\..\\tools\\ansicon.exe"; #else - sdbPath += "/../../../../../tools/sdb"; + tmpSdbPath += "/../../../../../tools/sdb"; #endif + sdbPath = QDir::toNativeSeparators(tmpSdbPath); } QString ShellOpener::getSdbPath() @@ -65,10 +66,10 @@ void ShellOpener::openShell(QString title) } #ifdef CONFIG_WIN32 - command = "cmd.exe"; - arguments << "/c" << "start" << sdbPath << "sdb" << "-s" << sdbSerialName << "shell"; + command = sdbPath; + arguments << "sdb" << "-s" << sdbSerialName << "shell"; #elif defined CONFIG_DARWIN - command = QCoreApplication::applicationDirPath() + "/sdbscript"; + command = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + "/sdbscript"); arguments << sdbPath << sdbSerialName; #else command = "/usr/bin/gnome-terminal"; -- 2.34.1