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:
parent
b995e8371f
commit
a9c8b6fa2f
|
@ -190,7 +190,7 @@ function parse_desktop_file(arg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if program.Exec then
|
if program.Exec and program.Name then
|
||||||
local cmdline = program.Exec:gsub('%%c', program.Name)
|
local cmdline = program.Exec:gsub('%%c', program.Name)
|
||||||
cmdline = cmdline:gsub('%%[fmuFMU]', '')
|
cmdline = cmdline:gsub('%%[fmuFMU]', '')
|
||||||
cmdline = cmdline:gsub('%%k', program.file)
|
cmdline = cmdline:gsub('%%k', program.file)
|
||||||
|
|
Loading…
Reference in a new issue