sdb: modify sdb launcher
authormunkyu.im <munkyu.im@samsung.com>
Thu, 13 Dec 2012 02:55:45 +0000 (11:55 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Thu, 13 Dec 2012 02:55:45 +0000 (11:55 +0900)
change uxterm to Terminal app.
Because It is more general and basic app on Mac.

Signed-off-by: munkyu.im <munkyu.im@samsung.com>
tizen/src/Makefile
tizen/src/sdbscript [new file with mode: 0755]
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index 7245866ef981eef47aa78d59b5912a8d2e74c326..b6cbe6c4d96e873a2a6daf7460cd4835eb1ddd7f 100755 (executable)
@@ -104,6 +104,7 @@ ifdef CONFIG_WIN32
 endif
 ifdef CONFIG_DARWIN
        cp check-hax $(EMUL_DIR)/bin
+       cp sdbscript $(EMUL_DIR)/bin
 endif
 ifdef CONFIG_LINUX
        cp -pPr ../distrib/initscript/tizen-kvm $(EMUL_DIR)/etc
diff --git a/tizen/src/sdbscript b/tizen/src/sdbscript
new file mode 100755 (executable)
index 0000000..c26d52f
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+TITLE=$1
+osascript > /dev/null << END
+tell application "Terminal"
+do script "`pwd`/../../sdb -s $TITLE shell"
+set custom title of first window to "$TITLE"
+end tell
+END
index 5a2b96e088b3d1d76c08620576b0a4c81526b8c2..1ed1c28a2609a030da937529c26e7bcfafcd2340 100644 (file)
@@ -1086,7 +1086,8 @@ public class EmulatorSkin {
                                        procSdb.command("cmd.exe", "/c", "start", sdbPath, "sdb",
                                                        "-s", "emulator-" + portSdb, "shell");
                                } else if (SwtUtil.isMacPlatform()) {
-                                       procSdb.command("/usr/X11/bin/uxterm", "-T", "emulator-" + portSdb, "-e", sdbPath,"shell");
+                                       procSdb.command("./sdbscript", "emulator-" + portSdb);
+                                       //procSdb.command("/usr/X11/bin/uxterm", "-T", "emulator-" + portSdb, "-e", sdbPath,"shell");
                                }
                                logger.log(Level.INFO, procSdb.command().toString());