From f0504d1486b68f577b39dadcd30c1efd526eee30 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 8 Aug 2020 23:26:19 +0200 Subject: [PATCH] theme: whitelist icons in /usr We use them! --- rc/theme.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc/theme.lua b/rc/theme.lua index 3bc1ec3..f4a0c51 100644 --- a/rc/theme.lua +++ b/rc/theme.lua @@ -65,7 +65,9 @@ for _, preset in pairs({"normal", "low", "critical"}) do naughty.config.presets[preset].border_width = 3 * theme.scale end naughty.config.notify_callback = function(args) - args.icon = nil + if args.icon ~= nil and string.sub(args.icon, 1, 5) ~= "/usr/" then + args.icon = nil + end return args end