summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/Makefile.am5
-rw-r--r--src/ExtEditor.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/lua/Makefile.am b/lua/Makefile.am
index 7ac6fda..914f4c5 100644
--- a/lua/Makefile.am
+++ b/lua/Makefile.am
@@ -18,6 +18,11 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+lua_script_DATA = base.lua \
+ $(NULL)
+
+lua_scriptdir = $(pkgdatadir)
+
noinst_LTLIBRARIES = \
libpylua.la \
$(NULL)
diff --git a/src/ExtEditor.cc b/src/ExtEditor.cc
index cc62811..2e6fef7 100644
--- a/src/ExtEditor.cc
+++ b/src/ExtEditor.cc
@@ -46,7 +46,7 @@ ExtEditor::ExtEditor (PinyinProperties & props, Config & config)
{
m_lua_plugin = ibus_engine_plugin_new();
- loadLuaScript("../lua/base.lua");
+ loadLuaScript(PKGDATADIR "/base.lua");
m_text = "";
m_cursor = 0;