From a2dae19df9dd78bacb15b62f7fccf02962f88918 Mon Sep 17 00:00:00 2001 From: Jihoon Chung Date: Tue, 16 Apr 2013 16:13:07 +0900 Subject: [PATCH] [Release] wrt_0.8.184 Change-Id: Ife9d05daa8d45acd320ee2429b87f1295a59bb6a --- packaging/wrt.spec | 4 ++-- src/view/common/view_logic_uri_support.cpp | 34 +++++++++++++++--------------- src/wrt-client/wrt-client.cpp | 15 ++++++++++++- 3 files changed, 33 insertions(+), 20 deletions(-) diff --git a/packaging/wrt.spec b/packaging/wrt.spec index 7e202df..1a7aef2 100644 --- a/packaging/wrt.spec +++ b/packaging/wrt.spec @@ -1,7 +1,7 @@ -#git:framework/web/wrt wrt_0.8.183 +#git:framework/web/wrt wrt_0.8.184 Name: wrt Summary: web runtime -Version: 0.8.183 +Version: 0.8.184 Release: 1 Group: Development/Libraries License: Apache License, Version 2.0 diff --git a/src/view/common/view_logic_uri_support.cpp b/src/view/common/view_logic_uri_support.cpp index 6725e25..be9f538 100644 --- a/src/view/common/view_logic_uri_support.cpp +++ b/src/view/common/view_logic_uri_support.cpp @@ -181,29 +181,29 @@ std::string getAppServiceUri(bundle *bundle, WidgetModel *widgetModel) value = appsvc_get_uri(bundle); std::string uri = value ? value : ""; + std::string scheme; + if (uri.empty()) { LogError("Launch with no bundle data"); - return std::string(""); - } - - // get scheme by iri - std::unique_ptr iri(iri_parse(uri.c_str())); - if (!iri.get()) { - LogDebug("Fail to get iri"); - return std::string(""); - } - std::string scheme; - if (iri->scheme) { - if (std::string(iri->scheme) != SCHEME_TYPE_FILE) { - scheme = iri->scheme; + } else { + // get scheme by iri + std::unique_ptr iri(iri_parse(uri.c_str())); + if (!iri.get()) { + LogDebug("Fail to get iri"); + return std::string(""); + } + if (iri->scheme) { + if (std::string(iri->scheme) != SCHEME_TYPE_FILE) { + scheme = iri->scheme; + } + } + if (iri->path) { + uri = iri->path; } - } - if (iri->path) { - uri = iri->path; } // get mime type by aul api in case of mime type is empty - if (mime.empty()) { + if (mime.empty() && !uri.empty()) { char mimetype[128] = {0,}; if (AUL_R_OK == aul_get_mime_from_file(uri.c_str(), diff --git a/src/wrt-client/wrt-client.cpp b/src/wrt-client/wrt-client.cpp index f8ff1b5..dac620f 100644 --- a/src/wrt-client/wrt-client.cpp +++ b/src/wrt-client/wrt-client.cpp @@ -35,6 +35,7 @@ #include "webkit/bundles/plugin_module_support.h" #include #include +#include #include "process_pool.h" #include "menu_db_util.h" @@ -848,6 +849,13 @@ static Eina_Bool proces_pool_fd_handler(void* /*data*/, Ecore_Fd_Handler *handle } +static void vconf_changed_handler(keynode_t *key, void *data) +{ + LogInfo("VCONFKEY_LANGSET vconf-key was changed!"); + + exit(-1); +} + void set_env() { // set evas backend type @@ -871,7 +879,6 @@ void set_env() setenv("ELM_IMAGE_CACHE", "0", 1); } - int main(int argc, char *argv[]) { @@ -918,6 +925,9 @@ int main(int argc, exit(-1); } + // register language change callback + vconf_notify_key_changed(VCONFKEY_LANGSET, vconf_changed_handler, NULL); + LogInfo("Prepare window_data"); // Temporarily change HOME path to app // This change is needed for getting elementary profile @@ -947,6 +957,9 @@ int main(int argc, ecore_main_loop_begin(); LogDebug("ecore_main_loop_begin()_end"); + // deregister language change callback + vconf_ignore_key_changed(VCONFKEY_LANGSET, vconf_changed_handler); + std::string tizenId = WrtClient::getTizenIdFromArgument(argc, argv); PluginModuleSupport::init(s_preparedEwkContext, tizenId); -- 2.7.4