diff --git a/Makefile.am b/Makefile.am index e39e89e..6aee35a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,3 +4,4 @@ bin_PROGRAMS = e16keyedit e16keyedit_SOURCES = ipc.c ipc.h menus.c menus.h viewer.c viewer.h +CPPFLAGS = -D DATADIR=\"$(datadir)\" diff --git a/viewer.c b/viewer.c index ea3fd23..a4864b4 100644 --- a/viewer.c +++ b/viewer.c @@ -871,7 +871,7 @@ load_actions(void) s = getenv("EROOT"); if (!s) - return; + s = DATADIR "/e16"; /* Default location */ snprintf(kbdb, sizeof(kbdb), "%s/config/e16keyedit.db", s);