DBusAction only supports system bus 31/141031/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 28 Jul 2017 01:17:31 +0000 (10:17 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 28 Jul 2017 01:17:31 +0000 (10:17 +0900)
Change-Id: I7afb14e8d7700a54c0b84faf72df8b2da5f6a8b9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
include/job_scheduler_internal.h
src/server/ActionState.cpp

index fc764b5a3d8b0deb4058474be44fcdecff2fa396..91f1fac1040c9bc0daac1baf3cc7d41d08c7fa5a 100644 (file)
@@ -295,7 +295,7 @@ int ctx_sched_job_set_notification(ctx_sched_job_h job,
                const char* title, const char* content, const char* icon_path, bundle* app_control);
 
 /**
- * @brief      Sets the DBus method that will be called when the job's execution criteria is satisfied.
+ * @brief      Sets the system DBus method that will be called when the job's execution criteria is satisfied.
  * @param[in]  job                     Job handle
  * @param[in]  bus_name        DBus destination
  * @param[in]  object_path     DBus object path
index d32ff616fa5adc51cab08afbeb48299e60a9c765..ea6dee78e088300da24d3040cb7a63778799b9e3 100644 (file)
@@ -91,16 +91,9 @@ void ActionState::__callDBusMethod()
        JobDBusCall* action = static_cast<JobDBusCall*>(getJobInfo()->getAction());
        bool success = false;
 
-       if (getUid() == SYSTEM_UID) {
-               _D("Call %s.%s", action->getInterface().c_str(), action->getMethodName().c_str());
-               success = IPC::dbusCall(action->getBusName(), action->getObjectPath(),
-                               action->getInterface(), action->getMethodName(), action->getParameters());
-       } else {
-               _D("Call %s.%s of %u", action->getInterface().c_str(), action->getMethodName().c_str(), static_cast<unsigned>(getUid()));
-               _W("Not supported yet");
-
-               //TODO: Delegate to the agent daemon
-       }
+       _D("Call %s.%s", action->getInterface().c_str(), action->getMethodName().c_str());
+       success = IPC::dbusCall(action->getBusName(), action->getObjectPath(),
+                       action->getInterface(), action->getMethodName(), action->getParameters());
 
        IF_FAIL_VOID_TAG(success, _E, "DBus call failed");
 }