A DESCRIPTION OF THE PROBLEM :
When application name contains spaces, jpackage generates invalid `xdg-desktop-menu` invocations: it does not escape spaces in name, so they become different args to `xdg-desktop-menu`, for example:
`xdg-desktop-menu install /opt/my-app/lib/My App.desktop`
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Invoke jpackage with `--name "My App"` and `--linux-shortcut`
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Produced deb can be installed/uninstalled
ACTUAL -
dpkg fails installs/uninstalls.
FREQUENCY : always