summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsung1103.park <sung1103.park@samsung.com>2012-08-23 05:01:12 (GMT)
committersung1103.park <sung1103.park@samsung.com>2012-08-23 05:01:12 (GMT)
commite83d82d8fb86b69691855e362056332354b29afa (patch)
treec686e88fb8c01d1e6db2327bfbbb191f7c9a31dd
parente27a941b1d14f552f32ff4acd039d016aa4751ad (diff)
downloadstarter-2.0alpha.zip
starter-2.0alpha.tar.gz
starter-2.0alpha.tar.bz2
-rwxr-xr-xboot-mgr/starter.c36
1 files changed, 35 insertions, 1 deletions
diff --git a/boot-mgr/starter.c b/boot-mgr/starter.c
index 09b742d..98148a9 100755
--- a/boot-mgr/starter.c
+++ b/boot-mgr/starter.c
@@ -75,6 +75,34 @@ static void _set_elm_theme(void)
if (vstr)
free(vstr);
}
+static int _launch_pwlock(void)
+{
+ int r;
+
+ _DBG("%s", __func__);
+
+ r = aul_launch_app("org.tizen.pwlock", NULL);
+ if (r < 0) {
+ _ERR("PWLock launch error: error(%d)", r);
+ if (r == AUL_R_ETIMEOUT) {
+ _DBG("Launch pwlock is failed for AUL_R_ETIMEOUT, again launch pwlock");
+ r = aul_launch_app("org.tizen.pwlock", NULL);
+ if (r < 0) {
+ _ERR("2'nd PWLock launch error: error(%d)", r);
+ return -1;
+ } else {
+ _DBG("Launch pwlock");
+ return 0;
+ }
+ } else {
+ return -1;
+ }
+ } else {
+ _DBG("Launch pwlock");
+ return 0;
+ }
+
+}
static void hib_leave(void *data)
{
@@ -87,6 +115,9 @@ static void hib_leave(void *data)
_DBG("%s", __func__);
_set_elm_theme();
start_lock_daemon();
+ if (_launch_pwlock() < 0) {
+ _ERR("launch pwlock error");
+ }
}
static int add_noti(struct appdata *ad)
@@ -174,7 +205,10 @@ static int _init(struct appdata *ad)
if (fd == -1) {
_DBG("fd = %d\n", fd);
start_lock_daemon();
- r = 0;
+ if (_launch_pwlock() < 0) {
+ _ERR("launch pwlock error");
+ }
+ r = 0;
} else {
close(fd);
r = add_noti(ad);