This question already has an answer here:
- Script at Startup 3 answers
- How do I start applications automatically on login? 14 answers
I'm using Ubuntu 14.04 LTS on a virtual machine and I'm trying to set it up so that when it starts up it also automatically follow the description on the
startmeup.sh.desktop to start the script
startmeup.sh.desktop script has the following code:
[Desktop Entry] Type=Application Exec=/home/kvm/scripts/taskhome.sh Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en]=Startmeup Name=Startmeup Comment[en]= Comment=
I put the file
startmeup.sh.desktop on the folder
config\autostart and I made it executable with the
chmod +x command, but when I reboot Ubuntu the script
taskhome.sh is not executed (I guess it's just because the
startmeup.sh.desktop is simply not executed either).
If I launch the
taskhome.sh script manually I don't have any problem.
If I open the folder that contains the script startmeup.sh.desktop, and I double click on it, the
taskhome.sh script starts without any problem.
However if I try to execute the
startmeup.sh.desktop script on a terminal with the command
./startmeup.sh.desktop then I get the error "
line 1: [Desktop: command not found.
Is there something I can do to make the script work on Ubuntu start up?