Fix to show zone launcher application when a zone is created 06/74206/1
authorSungbae Yoo <sungbae.yoo@samsung.com>
Mon, 13 Jun 2016 07:40:16 +0000 (16:40 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Mon, 13 Jun 2016 07:40:42 +0000 (16:40 +0900)
Change-Id: I03a6aefe54e207a21a0c3c9aaa98272689644f25
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
server/zone/zone.cpp

index bfa02bc..b79585e 100644 (file)
@@ -39,6 +39,8 @@
 #define ZONE_UID_MIN       60001
 #define ZONE_UID_MAX       65000
 
+#define ZONE_LAUNCHER_APP  "org.tizen.kaskit"
+
 namespace DevicePolicyManager {
 
 namespace {
@@ -460,6 +462,12 @@ int ZoneManager::createZone(const std::string& name, const std::string& manifest
             setZoneState(user.getUid(), 1);
 
             context.notify("ZoneManager::created", name, std::string());
+
+            // Running launch app
+            try {
+                Launchpad launchpad;
+                launchpad.launch(ZONE_LAUNCHER_APP);
+            } catch (runtime::Exception& e) {}
         } catch (runtime::Exception& e) {
             ERROR(e.what());
             context.notify("ZoneManager::removed", name, std::string());