ports/x11/awesome/patches/patch-lib_awful_util_lua

19 lines
987 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: lib/awful/util.lua
--- lib/awful/util.lua.orig
+++ lib/awful/util.lua
@@ -222,12 +222,12 @@ end
-- given extensions for the icon filename.
-- @param iconname The name of the icon to search for.
-- @param exts Table of image extensions allowed, otherwise { 'png', gif' }
--- @param dirs Table of dirs to search, otherwise { '/usr/share/pixmaps/' }
+-- @param dirs Table of dirs to search, otherwise { '${LOCALBASE}/share/pixmaps/' }
-- @tparam[opt] string size The size. If this is specified, subdirectories `x`
-- of the dirs are searched first.
function util.geticonpath(iconname, exts, dirs, size)
exts = exts or { 'png', 'gif' }
- dirs = dirs or { '/usr/share/pixmaps/', '/usr/share/icons/hicolor/' }
+ dirs = dirs or { '${LOCALBASE}/share/pixmaps/', '/usr/share/icons/hicolor/' }
local icontypes = { 'apps', 'actions', 'categories', 'emblems',
'mimetypes', 'status', 'devices', 'extras', 'places', 'stock' }
for _, d in pairs(dirs) do