Yesterday I did a fresh install of my system, but this time, instead of putting everything on one partition, I decided to make separate root and home partitions (root is mounted as / and home is mounted as /home). Everything is working fine, except for one small thing.
I have a script stored in my home folder (/home/brian/background.sh) that changes my desktop background each night. I had it setup in two ways. First, as a startup command, in case my computer was turned off at night, and second, in crontab, to run the script each night when my computer is left on.
The startup command, which I just have in Startup Applications, still works fine:
Code:
bash /home/brian/background.sh
However, the cron version is no longer working:
Code:
01 1 * * * /home/brian/background.sh
Do I need to change the parameters of the cron version since I now have a separate home partition?
I've tried running the script in a terminal to try and figure out the issue, but I can only get it to work if I change my directory to my home folder.
Any help is greatly appreciated.
Bookmarks