#include "e.h"
#include "e_policy_wl.h"
+#include "e_appinfo.h"
#include <tzsh_server.h>
#include <wayland-tbm-server.h>
#include "services/e_service_launcher.h"
E_Client *target_ec;
Eina_List *ecs, *l;
Eina_Bool sent = EINA_FALSE;
+ E_Appinfo *epai = NULL;
lc = wl_resource_get_user_data(res_tws_lc);
EINA_SAFETY_ON_NULL_RETURN(lc);
lc->serial = serial;
lc->target.pid = pid;
+ if (pid < 0)
+ {
+ epai = e_appinfo_find_with_appid(app_id);
+ lc->target.pid = pid = e_appinfo_pid_get(epai);
+ ELOGF("LAUNCHER_SRV", "Found pid:%d, appid:%s", NULL, pid, app_id);
+ }
+
if (pid >= 0 )
{
ecs = _launcher_clients_find_by_pid(pid);
E_Client *target_ec;
Eina_List *ecs, *l;
Eina_Bool sent = EINA_FALSE;
+ E_Appinfo *epai = NULL;
lc = wl_resource_get_user_data(res_tws_lc);
EINA_SAFETY_ON_NULL_RETURN(lc);
lc->serial = serial;
lc->target.pid = pid;
+ if (pid < 0)
+ {
+ epai = e_appinfo_find_with_appid(app_id);
+ lc->target.pid = pid = e_appinfo_pid_get(epai);
+ ELOGF("LAUNCHER_SRV", "Found pid:%d, appid:%s", NULL, pid, app_id);
+ }
+
if (pid >= 0)
{
ecs = _launcher_clients_find_by_pid(pid);