theme: only strip icons when they are "user-data"

This commit is contained in:
Vincent Bernat 2020-08-10 09:27:27 +02:00
parent 1c98577658
commit c594dbdbb5

View file

@ -65,7 +65,7 @@ for _, preset in pairs({"normal", "low", "critical"}) do
naughty.config.presets[preset].border_width = 3 * theme.scale
end
naughty.config.notify_callback = function(args)
if args.icon ~= nil and string.sub(args.icon, 1, 5) ~= "/usr/" then
if args.icon ~= nil and type(args.icon) ~= "string" then
args.icon = nil
end
return args