I'm trying to make a program startup when I log in. The program is a shell script called "wicd-gtk" located in the /usr/bin directory, so I tried making a soft link to it in the /home/<user>/.config/autostart directory. However, I get a link to the /usr/bin directory instead.
So I ran this command:
ln -s /usr/bin/wicd-gtk /home/cameron/.config/autostart/wicd-gtk
I looked in the autostart directory and there was a symbolic link called wicd-gtk that links to the /usr/bin directory. I wanted it to link to /usr/bin/wicd-gtk, but it refused and linked it to /usr/bin instead.
However, if I specify a different name for the link by doing this:
ln -s /usr/bin/wicd-gtk /home/cameron/.config/autostart/donkeypoo
it works, and there is a link named donkeypoo in the autostart directory that points to /usr/bin/wicd-gtk . Of course, I can rename it from donkeypoo to wicd-gtk, but why do I have to go through all of this? Why doesn't it work when the names are the same?
EDIT: Oh, and by the way, the script refuses to start automatically. Why doesn't it start if it's in the autostart directory?