1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 20:41:22 +00:00

freedesktop: fixed crashes with missing program names #41

This commit is contained in:
copycat-killer 2014-05-16 11:48:54 +02:00
parent f563bed60a
commit d3d7f2f2e5

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)