From f0368c21c5fe9587011b7facad0dee60e092fe30 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 14 Jun 2017 11:10:22 +0200 Subject: [PATCH] menubar.icon_theme: Never use nil as icon theme name The return value for this function is used as an index in a table and Lua does not like nil as an index. The function that actually looks for icons, find_icon_theme() already falls back to "hicolor" if it does not find anything via the current theme, so fix this issue by just falling back to "hicolor" here as well. Fixes: https://github.com/awesomeWM/awesome/issues/1819 Signed-off-by: Uli Schlachter --- lib/menubar/icon_theme.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/menubar/icon_theme.lua b/lib/menubar/icon_theme.lua index 1bc32bd9a..7dcc44b02 100644 --- a/lib/menubar/icon_theme.lua +++ b/lib/menubar/icon_theme.lua @@ -70,7 +70,7 @@ local get_default_icon_theme_name = function() end end end - return nil + return "hicolor" end local icon_theme = { mt = {} }