1

Users home path in a bash script

view story
linux-howto

http://unix.stackexchange.com – I'm writing a bash-script that will be run as a cron job everyday. Very basic, I was wanting to change the wallpaper daily. I have mint-14 with mate. The thing I'm getting caught up on right now is, I want to have the user's home path detected automatically. If I don't do this I would have to change it for all other users that run the script. So far I have tried: homedir=${HOME}/Pictures/daily mateconftool-2 -t string -s /desktop/mate/background/picture_filename $homedir; This doesn't work but, echo $homedir Prints out the correct path? EDIT: When I tried ~user like @vonbrand w (HowTos)