1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2025-01-12 02:38:08 +00:00

Fixed crashes with missing program names

This commit is contained in:
Eric Blanchette 2014-05-08 10:30:36 -04:00
parent b995e8371f
commit a9c8b6fa2f

View file

@ -190,7 +190,7 @@ function parse_desktop_file(arg)
end
end
if program.Exec then
if program.Exec and program.Name then
local cmdline = program.Exec:gsub('%%c', program.Name)
cmdline = cmdline:gsub('%%[fmuFMU]', '')
cmdline = cmdline:gsub('%%k', program.file)