Remove hardcoded path 93/23093/1
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 17 Jun 2014 12:01:55 +0000 (14:01 +0200)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Tue, 17 Jun 2014 12:02:33 +0000 (14:02 +0200)
Bug-Tizen: TC-330

Change-Id: Ic05a484941be3ebfd844b915f6fa6f2801bc6ad4
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
src/badge_setting.c

index 749c778..410f784 100755 (executable)
@@ -24,6 +24,7 @@
 #include <stdarg.h>
 #include <sqlite3.h>
 #include <db-util.h>
+#include <tzplatform_config.h>
 
 #include "badge.h"
 #include "badge_log.h"
@@ -34,7 +35,7 @@
 #include "badge_db.h"
 
 #define SETTING_DB_TABLE "notification_setting"
-#define SETTING_DB_FILE "/opt/usr/dbspace/.notification_parser.db"
+#define SETTING_DB_FILE tzplatform_mkpath(TZ_USER_DB,".notification_parser.db")
 
 struct prop_table {
        const char *property;