summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/ug-nfc-efl.spec1
-rw-r--r--ug-nfc-setting-efl/CMakeLists.txt1
-rw-r--r--ug-nfc-setting-efl/include/ug-nfc-setting-main.h3
-rw-r--r--ug-nfc-setting-efl/src/ug-nfc-setting-db.c3
4 files changed, 6 insertions, 2 deletions
diff --git a/packaging/ug-nfc-efl.spec b/packaging/ug-nfc-efl.spec
index 70e7cb5..c843b63 100644
--- a/packaging/ug-nfc-efl.spec
+++ b/packaging/ug-nfc-efl.spec
@@ -23,6 +23,7 @@ BuildRequires: pkgconfig(capi-content-mime-type)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: cmake
BuildRequires: edje-tools
BuildRequires: gettext-tools
diff --git a/ug-nfc-setting-efl/CMakeLists.txt b/ug-nfc-setting-efl/CMakeLists.txt
index 88152cd..a523b6a 100644
--- a/ug-nfc-setting-efl/CMakeLists.txt
+++ b/ug-nfc-setting-efl/CMakeLists.txt
@@ -41,6 +41,7 @@ vconf
capi-appfw-application
capi-network-nfc
sqlite3
+libtzplatform-config
)
FOREACH(flag ${pkgs_ug_nfc_setting_CFLAGS})
diff --git a/ug-nfc-setting-efl/include/ug-nfc-setting-main.h b/ug-nfc-setting-efl/include/ug-nfc-setting-main.h
index a37b37e..2b41397 100644
--- a/ug-nfc-setting-efl/include/ug-nfc-setting-main.h
+++ b/ug-nfc-setting-efl/include/ug-nfc-setting-main.h
@@ -32,12 +32,13 @@ extern "C" {
#include <dlog.h>
#include <vconf.h>
#include <nfc.h>
+#include <tzplatform_config.h>
#define LOCALE_PATH LOCALEDIR
#define EDJ_PATH EDJDIR
#define EDJ_FILE EDJ_PATH"/"PACKAGE".edj"
-#define PREDEFINED_ITEM_FILE_PATH "/usr/apps/org.tizen.57r43275q7/share"
+#define PREDEFINED_ITEM_FILE_PATH tzplatform_mkpath(TZ_SYS_RO_APP, "org.tizen.57r43275q7/share")
#ifdef LOG_TAG
#undef LOG_TAG
diff --git a/ug-nfc-setting-efl/src/ug-nfc-setting-db.c b/ug-nfc-setting-efl/src/ug-nfc-setting-db.c
index b18d1a1..0df8b2c 100644
--- a/ug-nfc-setting-efl/src/ug-nfc-setting-db.c
+++ b/ug-nfc-setting-efl/src/ug-nfc-setting-db.c
@@ -17,9 +17,10 @@
#include "ug-nfc-setting-main.h"
#include "ug-nfc-setting-db.h"
+#include <tzplatform_config.h>
-#define DB_FILE_PATH "/opt/usr/dbspace/.net-nfcpush.db"
+#define DB_FILE_PATH tzplatform_mkpath(TZ_USER_DB, ".net-nfcpush.db")
#define DB_TABLE_NAME "NfcPushMsgTable"
/* sqlite> .schema */