mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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 <psychon@znc.in>
This commit is contained in:
parent
4fc3108e0f
commit
202be62157
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue