[Task-mgr] Change the pkgmgrinfo API to usr
authormoon87.park <moon87.park@samsung.com>
Tue, 15 Sep 2015 05:31:46 +0000 (14:31 +0900)
committermoon87.park <moon87.park@samsung.com>
Tue, 15 Sep 2015 05:31:46 +0000 (14:31 +0900)
Change-Id: I6761d3ce2b503f02304d4a3bac2df65f521bb59c

src/list.c

index 43bc501..bf0f7d2 100644 (file)
@@ -236,7 +236,7 @@ static task_mgr_error_e _create_pkginfo_table(void)
                return TASK_MGR_ERROR_FAIL;
        }
 
-       ret = pkgmgrinfo_appinfo_filter_foreach_appinfo(handle, _get_pkginfo_cb, NULL);
+       ret = pkgmgrinfo_appinfo_usr_filter_foreach_appinfo(handle, _get_pkginfo_cb, NULL, getuid());
        if (ret != PMINFO_R_OK) {
                pkgmgrinfo_appinfo_filter_destroy(handle);
                return TASK_MGR_ERROR_FAIL;