2012-02-18 06:24:44 -05:00
|
|
|
$OpenBSD: patch-lib_awful_util_lua_in,v 1.5 2012/02/18 11:24:44 dcoppa Exp $
|
2011-11-30 06:50:58 -05:00
|
|
|
--- lib/awful/util.lua.in.orig Wed Nov 23 15:08:50 2011
|
2012-02-18 06:24:44 -05:00
|
|
|
+++ lib/awful/util.lua.in Sat Feb 18 12:18:53 2012
|
|
|
|
@@ -179,10 +179,10 @@ end
|
|
|
|
-- It searches for the icon path under the directories given w/the right ext
|
|
|
|
-- @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/' }
|
2011-11-30 06:50:58 -05:00
|
|
|
function geticonpath(iconname, exts, dirs)
|
|
|
|
exts = exts or { 'png', 'gif' }
|
|
|
|
- dirs = dirs or { '/usr/share/pixmaps/' }
|
|
|
|
+ dirs = dirs or { '${LOCALBASE}/share/pixmaps/' }
|
|
|
|
for _, d in pairs(dirs) do
|
|
|
|
for _, e in pairs(exts) do
|
|
|
|
local icon = d .. iconname .. '.' .. e
|