diff --git a/configure.ac b/configure.ac index 9500b759..217d8a55 100644 --- a/configure.ac +++ b/configure.ac @@ -107,7 +107,7 @@ AS_IF([test "x$WHOAMI" = "xfalse"], [aw_whoami="???"], [aw_whoami=`$WHOAMI`]) AC_DEFINE_UNQUOTED([AWESOME_COMPILE_BY], ["$aw_whoami"], [build user]) AS_AC_EXPAND(awesomelibdir, "$datarootdir/awesome/lib") -AC_DEFINE_UNQUOTED([AWESOME_LIB_PATH], "${awesomelibdir}", [awesome lib path]) +AC_DEFINE_UNQUOTED([AWESOME_LUA_LIB_PATH], "${awesomelibdir}", [awesome lib path]) # Checks for libraries. AC_PATH_XTRA diff --git a/lua.c b/lua.c index c11da31c..8218f5ff 100644 --- a/lua.c +++ b/lua.c @@ -348,7 +348,7 @@ luaA_parserc(const char *rcfile) draw_color_new(globalconf.connection, globalconf.default_screen, "black", &globalconf.colors.fg); draw_color_new(globalconf.connection, globalconf.default_screen, "white", &globalconf.colors.bg); - luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LIB_PATH "?.lua\""); + luaA_dostring(L, "package.path = package.path .. \";" AWESOME_LUA_LIB_PATH "/?.lua\""); if(luaL_dofile(L, rcfile)) {