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 taskhome.sh
.
The 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?
cp /path/to/startmeup.sh.desktop ~/.config/autostart/
and then trychmod +x ~/.config/autostart/startmeup.sh.desktop
. will work. – αғsнιη Dec 30 '14 at 15:03~/.config/autostart
) says "Untrusted application launcher - The desktop file "xxx.desktop" is in an insecure location and not marked as executable. If you do not trust this program, click Cancel." Making it executable then shows it's name using the "Name=" tag, and not it's filename. – Xen2050 Jan 01 '15 at 18:21