#include <tzplatform_config.h>
#include <xdgmime.h>
-#include <vconf.h>
#include <glib.h>
#include <grp.h>
#include <pwd.h>
#include "ail_db.h"
#include "ail_sql.h"
#include "ail.h"
+#include "ail_vconf.h"
#define BUFSIZE 4096
#define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
/* "db/setting/theme" is not exist */
#if 0
- theme = vconf_get_str("db/setting/theme");
+ theme = ail_vconf_get_str("db/setting/theme");
if (!theme) {
theme = strdup("default");
if(!theme) {
do {
ret = db_open(DB_OPEN_RO, uid);
if (ret < 0) break;
-//is_admin
- ret = db_prepare(query, &stmt);
- //ret = db_prepare_globalro(query, &stmt);
+
+ if (uid != GLOBAL_USER) {
+ ret = db_prepare(query, &stmt);
+ } else {
+ ret = db_prepare_globalro(query, &stmt);
+ }
+
if (ret < 0) break;
ret = db_step(stmt);
retv_if(!noti_string, AIL_ERROR_OUT_OF_MEMORY);
snprintf(noti_string, size + 1, "%s:%s:%u", type_string, package, getuid());
- vconf_set_str(VCONFKEY_AIL_INFO_STATE, noti_string);
- vconf_set_str(VCONFKEY_MENUSCREEN_DESKTOP, noti_string); // duplicate, will be removed
+ ail_vconf_set_str(VCONFKEY_AIL_INFO_STATE, noti_string);
+ ail_vconf_set_str(VCONFKEY_MENUSCREEN_DESKTOP, noti_string); // duplicate, will be removed
_D("Noti : %s", noti_string);
free(noti_string);