From: Artur Świgoń Date: Tue, 2 Aug 2022 11:05:27 +0000 (+0200) Subject: elm_atspi: Check AUL_APPID for application name X-Git-Tag: submit/tizen/20220804.070804^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=459b4abd717eb900a69357ceffdcda4a186dfc77;p=platform%2Fupstream%2Fefl.git elm_atspi: Check AUL_APPID for application name @tizen_only Change-Id: I554014d1e76d218f54cc00df93eb9f82a8527db9 --- diff --git a/src/lib/elementary/elm_atspi_app_object.c b/src/lib/elementary/elm_atspi_app_object.c index b06a112..3e72509 100644 --- a/src/lib/elementary/elm_atspi_app_object.c +++ b/src/lib/elementary/elm_atspi_app_object.c @@ -57,9 +57,24 @@ _elm_atspi_app_object_efl_access_object_access_children_get(const Eo *obj EINA_U EOLIAN static const char* _elm_atspi_app_object_efl_access_object_i18n_name_get(const Eo *obj EINA_UNUSED, Elm_Atspi_App_Object_Data *_pd EINA_UNUSED) { - const char *ret; - ret = elm_app_name_get(); - return ret; + //TIZEN_ONLY(20220802): Check AUL_APPID for application name + //const char *ret; + //ret = elm_app_name_get(); + //return ret; + static const char *app_name; + + if (!app_name) + { + const char *env; + + if ((env = getenv("AUL_APPID"))) + app_name = env; + else + app_name = elm_app_name_get(); + } + + return app_name; + // } EOLIAN static const char*