Revert "e_service_launcher: query pid from appid when dealing with launch request(s)" 78/233978/2
authorSung-Jin Park <sj76.park@samsung.com>
Thu, 21 May 2020 02:23:11 +0000 (11:23 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 21 May 2020 12:26:27 +0000 (12:26 +0000)
This reverts commit 99f14509ba8eb50d917815b2bffa71e0b2b9d657.

Change-Id: I0a126b0ce8ed6d0e9262b70f0f42a7853f434843

src/bin/services/e_service_launcher.c

index 6c8ecbf5ce9fee76ed26caff2ea924ef61916688..21b391168b0d117d31a1b082db2dabbe5cbac624 100644 (file)
@@ -1,6 +1,5 @@
 #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"
@@ -928,7 +927,6 @@ _launcher_cb_launch(struct wl_client *client EINA_UNUSED,
    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);
@@ -963,13 +961,6 @@ _launcher_cb_launch(struct wl_client *client EINA_UNUSED,
    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);
@@ -1022,7 +1013,6 @@ _launcher_cb_launch_with_shared_widget(struct wl_client *client EINA_UNUSED,
    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);
@@ -1060,13 +1050,6 @@ _launcher_cb_launch_with_shared_widget(struct wl_client *client EINA_UNUSED,
    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);