Change temporary storage path
authorJihoon Chung <jihoon.chung@samsung.com>
Wed, 29 May 2013 06:29:15 +0000 (15:29 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Thu, 30 May 2013 06:01:31 +0000 (15:01 +0900)
[Issue#] H0100184102
[Problem] Using tizen.download to download to "wgt-private" works,
but not to "wgt-private-tmp"
[Cause] N/A
[Solution]
Change temporary storage path app directory
Before : /tmp/pkgid/
After  : /opt/usr/apps/pkgid/tmp/
[SCMRequest] N/A

Change-Id: Ica434a2ce5be2e7ceb816d92b0aafd60bc25515d

modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h
modules/widget_dao/include/dpl/wrt-dao-ro/widget_config.h

index 19791e7..4daca99 100644 (file)
@@ -125,6 +125,14 @@ inline const char* GetWidgetPrivateStoragePath()
 }
 
 /**
+ * widgets private temp data path
+ */
+inline const char* GetWidgetPrivateTempStoragePath()
+{
+    return "tmp";
+}
+
+/**
  * widgets desktop files path
  */
 inline const char* GetUserWidgetDesktopPath()
index 04275ba..643ff7b 100644 (file)
@@ -55,9 +55,8 @@ inline std::string GetWidgetPersistentStoragePath(DPL::String tzPkgId)
 
 inline std::string GetWidgetTemporaryStoragePath(DPL::String tzPkgId)
 {
-    return PathBuilder()
-               .Append(GlobalConfig::GetTmpDirPath())
-               .Append(DPL::ToUTF8String(tzPkgId))
+    return PathBuilder(GetWidgetBasePath(tzPkgId))
+               .Append(GlobalConfig::GetWidgetPrivateTempStoragePath())
                .GetFullPath();
 }