From 25f066718f313f061a94c7067c0838d376413c49 Mon Sep 17 00:00:00 2001 From: Tomasz Marciniak Date: Thu, 10 Sep 2015 12:26:01 +0200 Subject: [PATCH] [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 --- src/systemsetting/systemsetting_instance.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.34.1