sdb: wrap path with double quotes
authorMunkyu Im <munkyu.im@samsung.com>
Tue, 8 Sep 2015 07:43:20 +0000 (16:43 +0900)
committerMunkyu Im <munkyu.im@samsung.com>
Tue, 8 Sep 2015 07:56:15 +0000 (16:56 +0900)
when push shell button on menu,
need wrapping sdb binary path with double quotes.
Otherwise it fails to launch if path has space character.

Change-Id: Ib58114b0f4885502d08a3a74c31a92751b61a752
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index fa918759a6bc14c803355dcb1301a74d40619e08..034f86762e8970d1c34a8b76c0eff8784fb12aec 100755 (executable)
@@ -1833,7 +1833,7 @@ public class EmulatorSkin {
                                         * + portSdb, "-e", sdbPath, "shell");
                                         */
                                } else { /* Linux */
-                                       String sdbCmd = sdbPath + " -s" + " emulator-" + portSdb + " shell";
+                                       String sdbCmd = "\"" + sdbPath + "\"" + " -s" + " emulator-" + portSdb + " shell";
 
                                        /* Work Around :
                                         * To close a factory gnome-terminal(first instance) after the SDB session