mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2025-01-07 16:58:07 +00:00
freedesktop: fixed crashes with missing program names #41
This commit is contained in:
parent
f563bed60a
commit
d3d7f2f2e5
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue