From: munkyu.im Date: Thu, 13 Dec 2012 02:55:45 +0000 (+0900) Subject: sdb: modify sdb launcher X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1291 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=391b3858a1d28d6509831ad3382fca7fd5a7dc16;p=sdk%2Femulator%2Fqemu.git sdb: modify sdb launcher change uxterm to Terminal app. Because It is more general and basic app on Mac. Signed-off-by: munkyu.im --- diff --git a/tizen/src/Makefile b/tizen/src/Makefile index 7245866ef9..b6cbe6c4d9 100755 --- a/tizen/src/Makefile +++ b/tizen/src/Makefile @@ -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 index 0000000000..c26d52f408 --- /dev/null +++ b/tizen/src/sdbscript @@ -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 diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java index 5a2b96e088..1ed1c28a26 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java @@ -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());