menu: modified SDB shell command
authorGiWoong Kim <giwoong.kim@samsung.com>
Sat, 20 Sep 2014 03:02:50 +0000 (12:02 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Sat, 20 Sep 2014 03:02:50 +0000 (12:02 +0900)
To close a factory gnome-terminal after the SDB session period,
suicide command should be reserved by host shell on Ubuntu.

Change-Id: I090e64733834fd7a95b060fb7ebb1219ec34e950
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index e629aeef5ddb0990715c525e29f6ad1b442e9f6d..ce16556fe716c4d5cbf566ad643396e351616576 100755 (executable)
@@ -1830,12 +1830,13 @@ public class EmulatorSkin {
                                        procSdb.command("./sdbscript", "emulator-" + portSdb);
                                        /*
                                         * procSdb.command( "/usr/X11/bin/uxterm", "-T", "emulator-"
-                                        * + portSdb, "-e", sdbPath,"shell");
+                                        * + portSdb, "-e", sdbPath, "shell");
                                         */
                                } else { /* Linux */
-                                       procSdb.command("/usr/bin/gnome-terminal", "--title="
-                                                       + SkinUtil.makeEmulatorName(config), "-x", sdbPath,
-                                                       "-s", "emulator-" + portSdb, "shell");
+                                       String sdbCmd = sdbPath + " -s" + " emulator-" + portSdb + " shell";
+                                       procSdb.command("/usr/bin/gnome-terminal", "--disable-factory",
+                                                       "--title=" + SkinUtil.makeEmulatorName(config), "-x",
+                                                       "bash", "-c", sdbCmd + "; kill -9 `ps -p $$ -o ppid=`");
                                }
 
                                logger.info(procSdb.command().toString());