$OpenBSD: patch-lib_menubar_utils_lua_in,v 1.2 2014/01/14 13:33:37 dcoppa Exp $

commit aa51379be0a9317a5549034bc9be149f41ad9201
Author: Uli Schlachter <psychon@znc.in>
Date:   Sun Dec 29 15:10:31 2013 +0100

menubar: Fix API docs

ldoc wants documentation comments to start with "---", not just "--".

Signed-off-by: Uli Schlachter <psychon@znc.in>

--- lib/menubar/utils.lua.in.orig	Sat Oct 12 18:48:49 2013
+++ lib/menubar/utils.lua.in	Tue Jan 14 13:26:39 2014
@@ -23,14 +23,14 @@ local utils = {}
 
 -- Options section
 
--- Terminal which applications that need terminal would open in.
+--- Terminal which applications that need terminal would open in.
 utils.terminal = 'xterm'
 
 -- The default icon for applications that don't provide any icon in
 -- their .desktop files.
 local default_icon = nil
 
--- Name of the WM for the OnlyShownIn entry in the .desktop file.
+--- Name of the WM for the OnlyShownIn entry in the .desktop file.
 utils.wm_name = "awesome"
 
 -- Private section
@@ -81,10 +81,10 @@ function utils.lookup_icon(icon_file)
         local icon_theme_paths = {}
         local icon_theme = theme.icon_theme
         if icon_theme then
-            table.insert(icon_theme_paths, '/usr/share/icons/' .. icon_theme .. '/')
+            table.insert(icon_theme_paths, '${LOCALBASE}/share/icons/' .. icon_theme .. '/')
             -- TODO also look in parent icon themes, as in freedesktop.org specification
         end
-        table.insert(icon_theme_paths, '/usr/share/icons/hicolor/') -- fallback theme
+        table.insert(icon_theme_paths, '${LOCALBASE}/share/icons/hicolor/') -- fallback theme
 
         for i, icon_theme_directory in ipairs(icon_theme_paths) do
             for j, size in ipairs(all_icon_sizes) do
@@ -97,8 +97,8 @@ function utils.lookup_icon(icon_file)
             end
         end
         -- lowest priority fallbacks
-        table.insert(icon_path, '/usr/share/pixmaps/')
-        table.insert(icon_path, '/usr/share/icons/')
+        table.insert(icon_path, '${LOCALBASE}/share/pixmaps/')
+        table.insert(icon_path, '${LOCALBASE}/share/icons/')
 
         for i, directory in ipairs(icon_path) do
             if is_format_supported(icon_file) and awful_util.file_readable(directory .. icon_file) then
