From: Tomasz Marciniak Date: Thu, 10 Sep 2015 10:26:01 +0000 (+0200) Subject: [SystemSetting] Fixed using virtual paths. X-Git-Tag: submit/tizen/20151026.073646^2^2~115^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25f066718f313f061a94c7067c0838d376413c49;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [SystemSetting] Fixed using virtual paths. [Verification] Code compiles. TCT pass rate 100% Properties can be set with virtual paths. Change-Id: I95316e15bc8f77ab1e852bb91d75e6174c4794c5 Signed-off-by: Tomasz Marciniak --- diff --git a/src/systemsetting/systemsetting_instance.cc b/src/systemsetting/systemsetting_instance.cc index ae66b000..9eb7d2aa 100755 --- a/src/systemsetting/systemsetting_instance.cc +++ b/src/systemsetting/systemsetting_instance.cc @@ -21,6 +21,7 @@ #include "common/logger.h" #include "common/picojson.h" #include "common/task-queue.h" +#include "common/virtual_fs.h" #include @@ -145,7 +146,8 @@ void SystemSettingInstance::setProperty(const picojson::value& args, picojson::o auto get = [this, type, value, callback_id](const std::shared_ptr& response) -> void { LoggerD("Setting platform value"); - PlatformResult status = setPlatformPropertyValue(type, value); + std::string real_path = VirtualFs::GetInstance().GetRealPath(value); + PlatformResult status = setPlatformPropertyValue(type, real_path); picojson::object& obj = response->get(); if (status.IsSuccess()) { ReportSuccess(obj);