From 1bbb6ca2a0240ab98510fe8a5f470d0a47b382af Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 19 Sep 2014 17:25:57 +0800 Subject: fixes lua script loads --- src/PYExtEditor.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/PYExtEditor.cc b/src/PYExtEditor.cc index 20898e9..ebcb18b 100644 --- a/src/PYExtEditor.cc +++ b/src/PYExtEditor.cc @@ -159,15 +159,10 @@ ExtEditor::ExtEditor (PinyinProperties & props, Config & config) { m_lua_plugin = ibus_engine_plugin_new (); - gchar * path = g_build_filename (g_get_user_config_dir (), - ".ibus", "pinyin", "base.lua", NULL); loadLuaScript ( ".." G_DIR_SEPARATOR_S "lua" G_DIR_SEPARATOR_S "base.lua")|| - loadLuaScript (path) || loadLuaScript (PKGDATADIR G_DIR_SEPARATOR_S "base.lua"); - g_free(path); - - path = g_build_filename (g_get_user_config_dir (), + gchar * path = g_build_filename (g_get_user_config_dir (), "ibus", "libpinyin", "user.lua", NULL); loadLuaScript(path); g_free(path); -- cgit