I am really struggling to get my pi to autorun a bash script on startup.
A little background - it is running Raspbian, it has LXDE, and it is set to autologin as the "pi" user in raspi-config.
I have followed about 6 different "how to" guides, and not one of them has worked for me! LXDE also has a "Desktop Session Settings" menu option, and I have also tried adding it to the Autostart section in there and still no joy. Tbh I'm not sure I'm adding the right thing here though - I have tried
and then tried all kinds of things like
/bin/sh /home/pi/script.sh /home/pi/script.sh /bin/bash /home/pi/script.sh
to no avail. I have tried adding it to both the "pi" user and root crontabs and have added the PATH= and SHELL= options suggested as fixes. I wondered if the problem was that I created the script as root, so I re-created it as the pi user and did everything over again.
I have also tried following all the suggestions for adding to