Submit together:
- https://review.tizen.org/gerrit/86038
Change-Id: I2837adfbb4ce3700caa17cca9c6ee9f8a2099cd7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
### Get required CFLAGS, LDFLAGS from pkg-config
include(FindPkgConfig)
-pkg_check_modules(installer_pkgs REQUIRED glib-2.0 gio-2.0 dlog pkgmgr-info)
+pkg_check_modules(installer_pkgs REQUIRED glib-2.0 gio-2.0 dlog pkgmgr-info libtzplatform-config)
foreach(flag ${installer_pkgs_CFLAGS})
set(installer_pkgs_CFLAGS_str "${installer_pkgs_CFLAGS_str} ${flag}")
endforeach()
#include <glib.h>
#include <gio/gio.h>
+#include <tzplatform_config.h>
#include "pkgmgr_installer.h"
#include "pkgmgr_installer_config.h"
}
}
+ /* if target user is not set, set as tizenglobalapp user */
+ if (pi->target_uid == 0) {
+ pi->target_uid = tzplatform_getuid(TZ_SYS_GLOBALAPP_USER);
+ g_target_uid = pi->target_uid;
+ }
RET:
return r;
}