Using hard-coded path for temporarly.
Change-Id: I0e7b65476f4d3933344754e36c387e9978fb352b
SET(RESDIR "${PREFIX}/res")
SET(EDJEDIR "${RESDIR}/edje")
SET(ICONDIR "${RESDIR}/icons")
-SET(DATADIR "/opt${PREFIX}/data")
+SET(DATADIR "/home/owner/apps_rw/${PKGNAME}/data")
SET(LOCALEDIR "${RESDIR}/locale")
SET(IMAGEDIR "${RESDIR}/images")
#define DATADIR "/opt"PREFIX"/data"
#endif
#ifndef TIZEN_3_0
-#define DBPATH tzplatform_mkpath(TZ_USER_DB, ".cluster-data.db")
-#define ROOTDBPATH DATADIR"/dbspace/.cluster-data.db"
+#define DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.cluster-data.db"
+#define ROOTDBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.cluster-data.db"
#else
-#define DBPATH DATADIR"/dbspace/.cluster-data.db"
+#define DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.cluster-data.db"
#endif
#define QUERY_MAX 4096
#endif
#ifndef TIZEN_3_0
-#define DBPATH tzplatform_mkpath(TZ_USER_DB, ".cluster-data.db")
-#define ROOTDBPATH DATADIR"/dbspace/.cluster-data.db"
+#define DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.cluster-data.db"
+#define ROOTDBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.cluster-data.db"
#else
-#define DBPATH DATADIR"/dbspace/.cluster-data.db"
+#define DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.cluster-data.db"
#endif
#define XMLPATH DATADIR"/xmls/homescreen_items.xml"
#define TEMPLATEXMLPATH DATADIR"/xmls/cluster_home_templates.xml"
using namespace ClusterHome3D;
using namespace std;
-#define CLUSTER_DBPATH tzplatform_mkpath(TZ_USER_DB, ".cluster-data.db")
-#define MAIN_DBPATH tzplatform_mkpath(TZ_USER_DB, ".mainmenu-data.db")
-
+#define CLUSTER_DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.cluster-data.db"
+#define MAIN_DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.mainmenu-data.db"
CHomeScreen::CHomeScreen(Dali::Application& application)
: mApplication(application),
#endif
#ifndef TIZEN_3_0
-#define DBPATH tzplatform_mkpath(TZ_USER_DB, ".mainmenu-data.db")
-#define ROOTDBPATH DATADIR"/dbspace/.mainmenu-data.db"
+#define DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.mainmenu-data.db"
+#define ROOTDBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.mainmenu-data.db"
#else
-#define DBPATH DATADIR"/dbspace/.mainmenu-data.db"
+#define DBPATH "/home/owner/apps_rw/org.tizen.homescreen/data/dbspace/.mainmenu-data.db"
#endif
%define APP_PREFIX /usr/apps/org.tizen.homescreen
-%define APP_DATADIR /opt/usr/apps/org.tizen.homescreen/data
+%define APP_DATADIR /home/owner/apps_rw/org.tizen.homescreen/data
%define APP_NAME org.tizen.homescreen
Name: org.tizen.homescreen
GOPTION="-g 6514"
echo "Remove prevous data"
-rm -rf /home/owner/.applications/dbspace/.cluster-data.db*;
-rm -rf /home/owner/.applications/dbspace/.mainmenu-data.db*;
+rm -rf %{APP_DATADIR}/dbspace/.cluster-data.db*;
+rm -rf %{APP_DATADIR}/dbspace/.mainmenu-data.db*;
-if [ ! -d /home/owner/.applications/dbspace ]
+rm -rf %{APP_DATADIR}/dbspace/
+if [ ! -d %{APP_DATADIR}/dbspace/ ]
then
- mkdir /home/owner/.applications/dbspace
+ mkdir %{APP_DATADIR}/dbspace/
fi
+rm -rf %{APP_DATADIR}/shortcut
if [ ! -d %{APP_DATADIR}/shortcut ]
then
mkdir %{APP_DATADIR}/shortcut
rm -rf %{APP_DATADIR}/shortcut/*
fi
+rm -rf %{APP_DATADIR}/wallpaper
if [ ! -d %{APP_DATADIR}/wallpaper ]
then
mkdir %{APP_DATADIR}/wallpaper