I have a modular java application that I'm trying to launch via a desktop file in ~/.local/share/applications:
[Desktop Entry]
Type=Application
Name=Converter
Path=/home/craig/ca.footeware.converter
Exec=sh -c "/usr/bin/java -p swt.jar:ca.footeware.converter.jar:ca.footeware.converter.temperature.jar:ca.footeware.converter.length.jar -m ca.footeware.converter/ca.footeware.converter.Converter"
Icon=/home/craig/ca.footeware.converter/converter.svg
Terminal=false
Categories=Utility;
StartupWMClass=SWT
I can run gtk-launch ca.footeware.converter.desktop and it works.
I can run the exec statement at cli (in the ~/ca.footeware.converter folder) and it works.
But when I click the Converter shortcut in overview the application does not open. How do I troubleshoot this?
Terminal=falsetoTerminal=trueand check for a terminal popping up. Alternatively, you could try tedirecting stdout and stderr to a file and investigating that.Terminal=trueandTerminal=falsethere is a brief flash of a terminal but the output, if any, isn't visible. I tried outputting to a logfile but one wasn't created.Exec=sh -v -c "/usr/bin/java -p swt.jar:ca.footeware.converter.jar:ca.footeware.converter.temperature.jar:ca.footeware.converter.length.jar -m ca.footeware.converter/ca.footeware.converter.Converter" &> logfileandExec=sh -v -c "/usr/bin/java -p swt.jar:ca.footeware.converter.jar:ca.footeware.converter.temperature.jar:ca.footeware.converter.length.jar -m ca.footeware.converter/ca.footeware.converter.Converter &> logfile"but got empty logfiles in both cases.