diff --git a/freedesktop/utils.lua b/freedesktop/utils.lua index c5247c3..f9358e7 100644 --- a/freedesktop/utils.lua +++ b/freedesktop/utils.lua @@ -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)