I have created a script to modify my touchpad settings, based on the instructions in this Tech Republic article: Tweak your touchpad to taste in Linux
I've done the following:
synclient -l > touchsettings
to create a file named 'touchsettings' containing all my touchpad's settings.
Then I used gedit to edit the settings as I want them, as well as adding a hash bang to the start of the script. I ran
chmod u+x touchsettings
to give the file execute permission.
The script does what it's supposed to if I then run ./touchsettings
But when I add the script to startup using the Startup Applications GUI (Add > Browse, then browse to file location of touchsettings), then restart the computer, touchpad functionality stops working entirely.
Why does this script work fine when calling ./touchsettings, whereas it breaks the touchpad when called at startup?
 
    