View Single Post
Old 1st November 2017
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

It seems to me like a bizarre way to do things but, hey, to each his own. Maybe something like this is the intention:
Code:
ls /home/garry/Images/backgrounds
print -n "Background file Name: "; read name
if [[ $name = "" ]]; then
    print "No change, exiting."
else
    display  -window root /home/garry/Images/backgrounds/${name}
fi
Reply With Quote