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 08:13:30 +0000 (17:13 +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 25201d7e72a43a4a947ff1f07a7264375605db73..5451389a31304f42bc7a3ae258f596ac3f9532c7 100644 (file)
@@ -1883,7 +1883,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