From 202be62157103c34fab12283fe8d6e46df615b67 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 16 Aug 2017 23:32:04 +0200 Subject: [PATCH] Automatically make LuaRocks modules available in awesome (#1999) Running eval $(luarocks path --bin) before running awesome is not all that easy. It's a lot easier to do the equivalent for this in rc.lua. Plus, if LuaRocks is not installed, this will silently do nothing. Signed-off-by: Uli Schlachter --- awesomerc.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awesomerc.lua b/awesomerc.lua index 00d1b6031..5f310867f 100644 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -1,3 +1,7 @@ +-- If LuaRocks is installed, make sure that packages installed through it are +-- found (e.g. lgi). If LuaRocks is not installed, do nothing. +pcall(require, "luarocks.loader") + -- @DOC_REQUIRE_SECTION@ -- Standard awesome library local gears = require("gears")