Prefer TryExec to Exec when generating menu entries from XDG desktop files.
commit4477ae4da46a5553756d368e0fe95e6ccbf1ddda
authorJeremy Sowden <jeremy@azazel.net>
Thu, 20 Jun 2019 20:23:55 +0000 (20 21:23 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 20 Jun 2019 21:06:36 +0000 (20 22:06 +0100)
treefd637824d14676ab666a5be869ede440472d573b
parent9330a021e5053291a6a75276a651a91cfc2523b1
Prefer TryExec to Exec when generating menu entries from XDG desktop files.

From the comments at the top of wmmenugen_parse_xdg.c:

  Since there is no passing of file name arguments or anything of the
  sort to applications from the menu, execname is determined as follows:

   - If `TryExec' is present, use that;
   - else use `Exec' with any switches stripped

However, Exec used to be preferred.  Changed code to prefer TryExec.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
util/wmmenugen_parse_xdg.c