auto& appid = app_status->GetAppID();
uid_t app_user_uid = app_status->GetUID();
- std::string endpoint_user = APP_STATUS_EVENT + ":" + appid + ":" +
- std::to_string(app_user_uid);
std::string endpoint_system = APP_STATUS_EVENT + ":" + appid;
- std::string endpoint_user2 = APP_STATUS_EVENT + ":"+
- std::to_string(app_user_uid);
std::string endpoint_system2 = APP_STATUS_EVENT;
- bool endpoint_user_exists = _app_com_endpoint_exists(endpoint_user.c_str());
bool endpoint_system_exists =
_app_com_endpoint_exists(endpoint_system.c_str());
- bool endpoint_user2_exists = _app_com_endpoint_exists(endpoint_user2.c_str());
bool endpoint_system2_exists =
_app_com_endpoint_exists(endpoint_system2.c_str());
- if (!endpoint_system_exists && !endpoint_user_exists &&
- !endpoint_system2_exists && !endpoint_user2_exists)
+ if (!endpoint_system_exists && !endpoint_system2_exists)
return -1;
auto b = CreateAppStatusBundle(app_status);
b.Add("__CONTEXT_STATUS__", std::to_string(context_status));
if (endpoint_system_exists)
_app_com_send(endpoint_system.c_str(), pid, b.GetHandle(), app_user_uid);
- if (endpoint_user_exists)
- _app_com_send(endpoint_user.c_str(), pid, b.GetHandle(), app_user_uid);
if (endpoint_system2_exists)
_app_com_send(endpoint_system2.c_str(), pid, b.GetHandle(), app_user_uid);
- if (endpoint_user2_exists)
- _app_com_send(endpoint_user2.c_str(), pid, b.GetHandle(), app_user_uid);
return 0;
}