[Title] set sdb shell title name
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 13 Feb 2012 08:55:56 +0000 (17:55 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 13 Feb 2012 08:55:56 +0000 (17:55 +0900)
[Type] enhancement
[Module] Emulator / menu
[Priority] minor
[Jira#]
[Redmine#]
[Problem]
[Cause] for multi-instance
[Solution]
[TestCase]

Change-Id: Ie158078ffa892909a33f4cf061959a34f2f598ad

tizen/src/command.c
tizen/src/fileio.c [changed mode: 0755->0644]

index 8e790a0..a171d0e 100644 (file)
@@ -51,7 +51,7 @@
 //DEFAULT_DEBUG_CHANNEL(tizen);
 MULTI_DEBUG_CHANNEL(tizen, command);
 
-#ifdef _WIN32
+#if 0
 void* system_telnet(void)
 {
     gchar cmd[256] = "";
@@ -66,18 +66,21 @@ void create_cmdwindow(void)
 {
     gchar cmd[256];
     const char *terminal = getenv("EMULATOR_TERMINAL");
+    int sdb_port = get_sdb_base_port();
 
 #ifdef _WIN32
-    sprintf (cmd, "start cmd /C %s\\SDK\\sdb\\sdb -s emulator-%d shell", get_sdk_root(), get_sdb_base_port());
+    sprintf (cmd, "start \"emulator-%d\" cmd /C %s\\SDK\\sdb\\sdb -s emulator-%d shell",
+        sdb_port, get_sdk_root(), sdb_port);
     system(cmd);
     fflush(stdout);
 #elif __linux__
     /* gnome-terminal */
     if (!terminal) {
-        terminal = "/usr/bin/gnome-terminal --disable-factory -x";
+        terminal = "/usr/bin/gnome-terminal --disable-factory";
         //terminal = "/usr/bin/xterm -l -e";
     }
-    sprintf(cmd, "%s %s/SDK/sdb/sdb -s emulator-%d shell", terminal, get_sdk_root(), get_sdb_base_port());
+    sprintf(cmd, "%s --title=emulator-%d -x %s/SDK/sdb/sdb -s emulator-%d shell",
+        terminal, sdb_port, get_sdk_root(), sdb_port);
 
     if (emul_create_process(cmd) == TRUE) {
         INFO( "start command window\n");
old mode 100755 (executable)
new mode 100644 (file)