From: Jihoon Kim Date: Mon, 28 Mar 2016 05:44:36 +0000 (+0900) Subject: Support to launch 3rd party shared object type IME X-Git-Tag: submit/tizen/20160404.235759~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3200a650056f1ee94041272fb44c2be5a7b10631;p=platform%2Fcore%2Fuifw%2Fisf.git Support to launch 3rd party shared object type IME Change-Id: I1eb1d8ef19071127c80571d771322433b5bdbba6 --- diff --git a/ism/extras/efl_panel/isf_panel_efl.cpp b/ism/extras/efl_panel/isf_panel_efl.cpp index e61ee4f4..06ce4a08 100644 --- a/ism/extras/efl_panel/isf_panel_efl.cpp +++ b/ism/extras/efl_panel/isf_panel_efl.cpp @@ -121,8 +121,6 @@ using namespace scim; #define E_PROP_DEVICEMGR_INPUTWIN "DeviceMgr Input Window" -#define SCIM_HELPER_LAUNCHER_PROGRAM (SCIM_LIBEXECDIR "/scim-helper-launcher") - ///////////////////////////////////////////////////////////////////////////// // Declaration of external variables. ///////////////////////////////////////////////////////////////////////////// diff --git a/ism/modules/frontend/scim_socket_frontend.cpp b/ism/modules/frontend/scim_socket_frontend.cpp index 5ad98177..540511d0 100644 --- a/ism/modules/frontend/scim_socket_frontend.cpp +++ b/ism/modules/frontend/scim_socket_frontend.cpp @@ -207,9 +207,6 @@ void SocketFrontEnd::get_helper_list (const Socket &client) } } -#ifndef SCIM_HELPER_LAUNCHER_PROGRAM - #define SCIM_HELPER_LAUNCHER_PROGRAM (SCIM_LIBEXECDIR "/scim-helper-launcher") -#endif static std::vector __active_helpers; static String scim_helper_path; diff --git a/ism/src/scim.cpp b/ism/src/scim.cpp index 40a63c50..6171ad79 100644 --- a/ism/src/scim.cpp +++ b/ism/src/scim.cpp @@ -129,10 +129,6 @@ static bool check_panel (const String &display) #include #include -#ifndef SCIM_HELPER_LAUNCHER_PROGRAM -#define SCIM_HELPER_LAUNCHER_PROGRAM (SCIM_LIBEXECDIR "/scim-helper-launcher") -#endif - static Ecore_Ipc_Server *server = NULL; static Ecore_Event_Handler *exit_handler = NULL; static Ecore_Event_Handler *data_handler = NULL; diff --git a/ism/src/scim_helper.h b/ism/src/scim_helper.h index c203cbcc..35274883 100644 --- a/ism/src/scim_helper.h +++ b/ism/src/scim_helper.h @@ -46,6 +46,10 @@ #include "scim_utility.h" +#ifndef SCIM_HELPER_LAUNCHER_PROGRAM +#define SCIM_HELPER_LAUNCHER_PROGRAM (SCIM_LIBEXECDIR "/scim-helper-launcher") +#endif + namespace scim { /** diff --git a/ism/src/scim_helper_launcher.cpp b/ism/src/scim_helper_launcher.cpp index 5ad76e6d..f749bb25 100644 --- a/ism/src/scim_helper_launcher.cpp +++ b/ism/src/scim_helper_launcher.cpp @@ -140,11 +140,13 @@ int main (int argc, char *argv []) uuid = String (argv [i]); continue; } + } - ISF_SAVE_LOG ("Invalid command line option: %d %s...\n", i, argv [i]); + String exec = String (argv[0]); - std::cerr << "Invalid command line option: " << argv [i] << "\n"; - return -1; + if (exec != String (SCIM_HELPER_LAUNCHER_PROGRAM)) { + /* 3rd party shared object type IME */ + uuid = helper = String ("lib") + exec.substr (exec.find_last_of (SCIM_PATH_DELIM) + 1); } SCIM_DEBUG_MAIN(1) << "scim-helper-launcher: " << config << " " << display << " " << helper << " " << uuid << "\n";