Modify the downlaod path 37/77737/1 accepted/tizen/common/20160701.192910 accepted/tizen/ivi/20160701.034323 accepted/tizen/mobile/20160701.034420 accepted/tizen/tv/20160701.034243 accepted/tizen/wearable/20160701.034350 submit/tizen/20160701.012632 submit/tizen_common/20160701.180000
authorDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 1 Jul 2016 01:20:06 +0000 (10:20 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 1 Jul 2016 01:20:06 +0000 (10:20 +0900)
Will change the code to use the common API

Change-Id: I37eb266f095753bcd135f7f75d46bfeaa20ab67f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-share/include/bt-share-common.h
packaging/bluetooth-share.spec

index cc01ed6..74961d6 100644 (file)
@@ -35,23 +35,23 @@ extern "C" {
 
 #define STORAGE_PATH_LEN_MAX 255
 
-#define BT_DOWNLOAD_DEFAULT_PHONE_FOLDER "/home/owner/content/Downloads"
+#define BT_DOWNLOAD_DEFAULT_PHONE_FOLDER "/opt/home/owner/content/Downloads"
 #define BT_DOWNLOAD_DEFAULT_MMC_FOLDER "/opt/media/SDCardA1"
-#define BT_DOWNLOAD_DEFAULT_MEDIA_FOLDER "/home/owner/content/Downloads"
+#define BT_DOWNLOAD_DEFAULT_MEDIA_FOLDER "/opt/home/owner/content/Downloads"
 //#define BT_DOWNLOAD_DEFAULT_MEDIA_FOLDER tzplatform_getenv(TZ_USER_CONTENT)
 
 /*
 #define BT_FTP_FOLDER tzplatform_mkpath(TZ_SYS_SHARE, "bt-ftp")
 */
 
-#define BT_DOWNLOAD_PHONE_ROOT "/home/owner/content/"
+#define BT_DOWNLOAD_PHONE_ROOT "/opt/home/owner/content/"
 #define BT_DOWNLOAD_MMC_ROOT "/opt/media/SDCardA1"
 #define BT_FTP_FOLDER "/opt/share/bt-ftp"
 #define BT_FTP_FOLDER_PHONE "/opt/share/bt-ftp/Media/"
 #define BT_FTP_FOLDER_MMC "/opt/share/bt-ftp/SD_External/"
 
 //#define BT_TMP_DIR "/opt/home/owner/content/Downloads/.bluetooth/"
-#define BT_TMP_DIR "/home/owner/content/Downloads/"
+#define BT_TMP_DIR "/opt/home/owner/content/Downloads/"
 #define BT_TMP_FILE BT_TMP_DIR"bluetooth_content_share"
 #define TXT_FILE_NAME BT_TMP_DIR"bluetooth_content_share.txt"
 #define HTML_FILE_NAME BT_TMP_DIR"bluetooth_content_share.html"
@@ -60,7 +60,7 @@ extern "C" {
 #define HTML_FORMAT "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\"/></head><body><a href=\"%s\">%s</a></body></html>"
 
 //#define BT_CONTACT_SHARE_TMP_DIR "/opt/home/owner/content/Downloads/.bluetooth/"
-#define BT_CONTACT_SHARE_TMP_DIR "/home/owner/content/Downloads/"
+#define BT_CONTACT_SHARE_TMP_DIR "/opt/home/owner/content/Downloads/"
 
 typedef enum {
        BT_HTTP_FILE,
index 97efb87..48512fd 100644 (file)
@@ -84,14 +84,14 @@ make
 install -D -m 0755 %{SOURCE1004} %{buildroot}%{TZ_SYS_DATA}/%{name}/init_db.sh
 install -D -m 0644 packaging/bluetooth-share.service %{buildroot}%{_libdir}/systemd/system/bluetooth-share.service
 
-#%post
-#/sbin/ldconfig
-#%{TZ_SYS_DATA}/%{name}/init_db.sh
+%post
+/sbin/ldconfig
+%{TZ_SYS_DATA}/%{name}/init_db.sh
+ln -sf %{_libdir}/systemd/system/bluetooth-share.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
 
 %post -n libbluetooth-share-devel -p /sbin/ldconfig
 
 %post -n libbluetooth-share -p /sbin/ldconfig
-ln -sf %{_libdir}/systemd/system/bluetooth-share.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
 
 %postun -n libbluetooth-share-devel -p /sbin/ldconfig