I have an install4j (9.0.5) project for an Eclipse-based RCP application for Windows, macOS and Linux AMD64. My application launchers are generated by Eclipse itself (via Tycho/Maven), and so are native executables in all three platforms. When I use the "create start menu entry" action (or, alternatively, "create program group" with the entry for the launcher), the result in Linux is a .desktop file where the Exec= entry points to the system shell, as follows:
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=MyApp
Exec=/bin/sh "/home/user/MyApp/myRcpLauncher" %U
Icon=/home/user/MyApp/.install4j/i4j_extf_6_1r3k7uj_1suwpj6.png
Categories=Science;
However, since my launcher is not a script, running the resulting menu entry fails silently. I have tried to look for options in the manual, but there does not appear to be a way of telling install4j to use the launcher directly in the Exec= line of the desktop entry file, or to not pass the %U argument which is supposed to represent a list of URLs.