From: Munkyu Im Date: Fri, 4 Sep 2015 09:23:21 +0000 (+0900) Subject: sdb: convert to native separator X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~40^2~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5abb22ae2ef8ec3450e6491ceee101a164ce3978;p=sdk%2Femulator%2Fqemu.git sdb: convert to native separator for windows, convert slash to reverse slash. Change-Id: I2a049bcb8addf5be0dc8bb11b7bca8e7fa2692d8 Signed-off-by: Munkyu Im --- 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";