awesome wm menu bug

if you get issues using CTRL+P with a error message pointing to : init.lua that looks like this:

nil argument to `ipairs` at menubar/init.lua:152
(my version v3.5.7 and all around it)

you should edit:

vim /usr/share/awesome/lib/menubar/utils.lua

and add the following lines around Line 177:


-- Substitute Exec special codes as specified in
-- http://standards.freedesktop.org/desktop-entry-spec/1.1/ar01s06.html

-- LINES TO ADD:
if program.Name == nil then
program.Name = '['.. file:match("([^/]+)%.desktop$") ..']'
end
-- END OF THE FIX

local cmdline = program.Exec:gsub('%%c', program.Name)
cmdline = cmdline:gsub('%%[fuFU]', '')

see: https://github.com/awesomeWM/awesome/commit/dd40e7a021dfdc3f69bf029321b7...

The menu should run without any further issues again after saving and restarting the window manager.
More information can be found on following link: https://github.com/awesomeWM/awesome/pull/83