From a9c8b6fa2f7f121c5b8cc9092de4d5eacab8a837 Mon Sep 17 00:00:00 2001 From: Eric Blanchette Date: Thu, 8 May 2014 10:30:36 -0400 Subject: [PATCH] Fixed crashes with missing program names --- freedesktop/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)