From: Jihoon Chung Date: Wed, 29 May 2013 06:29:15 +0000 (+0900) Subject: Change temporary storage path X-Git-Tag: submit/tizen_2.2/20130927.091100^2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42d2a049a6d66926289a9666db3e42c6eb9fe478;p=platform%2Fframework%2Fweb%2Fwrt-commons.git Change temporary storage path [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 --- diff --git a/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h b/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h index 19791e7..4daca99 100644 --- a/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h +++ b/modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h @@ -124,6 +124,14 @@ inline const char* GetWidgetPrivateStoragePath() return "data"; } +/** + * widgets private temp data path + */ +inline const char* GetWidgetPrivateTempStoragePath() +{ + return "tmp"; +} + /** * widgets desktop files path */ diff --git a/modules/widget_dao/include/dpl/wrt-dao-ro/widget_config.h b/modules/widget_dao/include/dpl/wrt-dao-ro/widget_config.h index 04275ba..643ff7b 100644 --- a/modules/widget_dao/include/dpl/wrt-dao-ro/widget_config.h +++ b/modules/widget_dao/include/dpl/wrt-dao-ro/widget_config.h @@ -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(); }