fixed sat-ui bug
authorJaeho Lee <jaeho81.lee@samsung.com>
Mon, 17 Dec 2012 07:10:39 +0000 (16:10 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Mon, 17 Dec 2012 07:10:39 +0000 (16:10 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
am_daemon/amd_launch.c
packaging/aul.spec

index 46229d4..b867603 100755 (executable)
@@ -428,6 +428,16 @@ static void __real_send(int clifd, int ret)
        close(clifd);
 }
 
+int __sat_ui_is_running()
+{
+       char *apppath = "/usr/apps/org.tizen.sat-ui/bin/sat-ui";
+       int ret = 0;
+
+       ret = __proc_iter_cmdline(NULL, apppath);
+
+       return ret;
+}
+
 int __sat_ui_launch(char* appid, bundle* kb, int cmd, int caller_pid, int fd)
 {
        int ret = -1;
@@ -438,7 +448,7 @@ int __sat_ui_launch(char* appid, bundle* kb, int cmd, int caller_pid, int fd)
        snprintf(tmp_pid, MAX_PID_STR_BUFSZ, "%d", caller_pid);
        bundle_add(kb, AUL_K_CALLER_PID, tmp_pid);
 
-       pid = _status_app_is_running_v2(appid);
+       pid = __sat_ui_is_running();
 
        if (pid > 0) {
                if (caller_pid == pid) {
index dd0fa5d..a93b18a 100644 (file)
@@ -1,6 +1,6 @@
 Name:       aul
 Summary:    App utility library
-Version:    0.0.220
+Version:    0.0.221
 Release:    1
 Group:      System/Libraries
 License:    Apache License, Version 2.0