X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhomescreen.cpp;h=142007fb81cf939541ade41f1fb3facf03f53836;hb=4cb1ba39335aa2a2d2e08481acd72a3682adaefe;hp=2a0ee77b7c60b3bc4c2656e572e3b8f202e022c1;hpb=95c8f8ac2526acc5f7467704532ea235532b1876;p=apps%2Fagl-service-homescreen.git diff --git a/src/homescreen.cpp b/src/homescreen.cpp index 2a0ee77..142007f 100644 --- a/src/homescreen.cpp +++ b/src/homescreen.cpp @@ -305,6 +305,7 @@ static void tap_shortcut (afb_req_t request) AFB_INFO("request appid = %s.", value); ret = g_hs_instance->client_manager->handleRequest(request, __FUNCTION__, value); if(ret == AFB_REQ_NOT_STARTED_APPLICATION) { + g_hs_instance->client_manager->setStartupAppid(std::string(value)); std::string id = g_hs_instance->app_info->getAppProperty(value, _keyId); HS_AfmMainProxy afm_proxy; afm_proxy.start(request->api, id); @@ -462,6 +463,7 @@ static void showWindow(afb_req_t request) if (value) { ret = g_hs_instance->client_manager->handleRequest(request, __FUNCTION__, value); if(ret == AFB_REQ_NOT_STARTED_APPLICATION) { + g_hs_instance->client_manager->setStartupAppid(std::string(value)); std::string id = g_hs_instance->app_info->getAppProperty(value, _keyId); HS_AfmMainProxy afm_proxy; afm_proxy.start(request->api, id);