#include <Elementary.h>
#include <Eina.h>
#include <Evas.h>
+#include <tzplatform_config.h>
#include "wallpaper-ui-service-debug.h"
#endif
#ifndef WALLPAPER_TXT_FILE
-#define WALLPAPER_TXT_FILE "/opt/usr/share/lockscreen/wallpaper_list/lockscreen_selected_images.txt"
+#define WALLPAPER_TXT_FILE tzplatform_mkpath(TZ_USER_SHARE, "lockscreen/wallpaper_list/lockscreen_selected_images.txt")
#endif
#include <Evas.h>
#include "wallpaper-ui-service-debug.h"
#include <E_DBus.h>
+#include <tzplatform_config.h>
#define PKGNAME "wallpaper-ui-service"
#endif
#if !defined(EDJDIR)
-#define EDJDIR "/usr/apps/org.tizen.wallpaper-ui-service/res/edje"
+#define EDJDIR tzplatform_mkpath(TZ_SYS_RO_APP, PKGNAME "/res/edje")
#endif
#if !defined(ICONDIR)
-#define ICONDIR "/usr/apps/org.tizen.wallpaper-ui-service/res/icons"
+#define ICONDIR tzplatform_mkpath(TZ_SYS_RO_ICONS, "wallpaper-ui-service.png")
#endif
#define EXTRA_KEY_FILE "file_path"
-%define PREFIX /usr/apps/%{name}
+%define PREFIX %{TZ_SYS_RO_APP}/%{name}
%define RESDIR %{PREFIX}/res
-%define PREFIXRW /opt/usr/apps/%{name}
+%define PREFIXRW %{TZ_SYS_RO_APP}/%{name}
Name: org.tizen.wallpaper-ui-service
Summary: wallpaper-ui-service window
BuildRequires: edje-tools
BuildRequires: gettext-tools
BuildRequires: hash-signer
+BuildRequires: pkgconfig(libtzplatform-config)
Requires(post): /usr/bin/vconftool
/etc/smack/accesses.d/%{name}.efl
/usr/apps/org.tizen.wallpaper-ui-service/author-signature.xml
/usr/apps/org.tizen.wallpaper-ui-service/signature1.xml
+
%attr(-,app,app) %dir /opt/usr/apps/org.tizen.wallpaper-ui-service/shared
%attr(-,app,app) %dir /opt/usr/apps/org.tizen.wallpaper-ui-service/shared/res
%attr(-,app,app) %dir /opt/usr/apps/org.tizen.wallpaper-ui-service/data