I have a .desktop file for a bash script, but when I launch the .desktop file nothing happens except that a terminal window is shown for half a second.
If I run the bash script directly (without the .desktop file), the script works fine (bash file is called 'minecraft'):
#!/bin/bash java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
The file is executable.
This is my minecraft.desktop file:
[Desktop Entry] Type=Application Name=Minecraft Comment=Minecraft Icon=/home/bram/Applications/Minecraft/icon.png Exec=/home/bram/Applications/Minecraft/minecraft Terminal=true Categories=Minecraft;game
minecraft.desktop is located in ~/.local/share/applications