}
}
changeOwnerForDirectory(storagePath);
+
+ std::string tempStoragePath = m_context.locations->getPrivateTempStorageDir();
+ LogDebug("Create temp private storage directory : " << tempStoragePath);
+ changeOwnerForDirectory(tempStoragePath);
}
void TaskFileManipulation::StepRenamePath()
}
/* data directory */
- if (PC_OPERATION_SUCCESS != app_label_dir(m_pkgId,
- m_context.locations->getPrivateStorageDir().c_str())) {
+ if (PC_OPERATION_SUCCESS !=
+ app_label_dir(m_pkgId,
+ m_context.locations->getPrivateStorageDir().c_str()))
+ {
LogWarning("Add label to " << m_context.locations->getPrivateStorageDir());
}
+ /* tmp directory */
+ if (PC_OPERATION_SUCCESS !=
+ app_label_dir(m_pkgId,
+ m_context.locations->getPrivateTempStorageDir().c_str()))
+ {
+ LogWarning("Add label to " << m_context.locations->getPrivateTempStorageDir());
+ }
+
/* bin directory */
if (PC_OPERATION_SUCCESS != app_label_dir(m_pkgId,
m_context.locations->getBinaryDir().c_str())) {
WrtDB::GlobalConfig::GetWidgetPrivateStoragePath();
}
+std::string WidgetLocation::getPrivateTempStorageDir() const
+{
+ return getUserDataRootDir() + "/" +
+ WrtDB::GlobalConfig::GetWidgetPrivateTempStoragePath();
+}
+
+
std::string WidgetLocation::getTemporaryPackageDir() const
{
return m_temp->getTempPath();
std::string getBackupPrivateDir() const; // /opt/apps/[pkg].backup/data
std::string getUserDataRootDir() const; // /opt/usr/apps/[package]
std::string getPrivateStorageDir() const; // /opt/usr/apps/[package]/data
+ std::string getPrivateTempStorageDir() const; // /opt/usr/apps/[package]/tmp
std::string getSharedRootDir() const; // /opt/usr/apps/[package]/shared
std::string getSharedResourceDir() const; // /opt/usr/apps/[package]/shared/res
std::string getSharedDataDir() const; // /opt/usr/apps/[package]/shared/data