I have this .desktop file set to update my software:
[Desktop Entry]
Version=1.0
Type=Application
Name=Update Software
Comment=Application
Exec=/home/david/Update_Script.sh
Icon=/home/david/Downloads/upgrade.jpg
Categories=Application;
Terminal=true
However, it launches Terminal, where I would prefer xterm. So do not mark this as a duplicate of this. I want the file to open xterm and then close xterm when the script is done. Here is what the script looks like currently:
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install -f
sudo apt-get clean
Do I need to add something to the .desktop file or to the script to make it open xterm (and close it when done)?