Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -26,7 +26,7 @@ function setroot() { | @@ -26,7 +26,7 @@ function setroot() { | ||
| 26 | function background() { | 26 | function background() { |
| 27 | local SED="/bin/sed" | 27 | local SED="/bin/sed" |
| 28 | local XRANDR="/usr/bin/xrandr" | 28 | local XRANDR="/usr/bin/xrandr" |
| 29 | - local TEMPFILE="/bin/tempfile" | 29 | + local TEMPFILE="/usr/bin/mktemp" |
| 30 | local IDENTIFY="/usr/bin/identify" | 30 | local IDENTIFY="/usr/bin/identify" |
| 31 | local CONVERT="/usr/bin/convert" | 31 | local CONVERT="/usr/bin/convert" |
| 32 | local ECHO="/bin/echo" | 32 | local ECHO="/bin/echo" |
| @@ -92,7 +92,7 @@ function background() { | @@ -92,7 +92,7 @@ function background() { | ||
| 92 | cmd="${cmd} ${img} -geometry ${image_geom}+${ofs_x}+${ofs_y} -composite" | 92 | cmd="${cmd} ${img} -geometry ${image_geom}+${ofs_x}+${ofs_y} -composite" |
| 93 | done | 93 | done |
| 94 | 94 | ||
| 95 | - img=`${TEMPFILE} -s '.jpg'` | 95 | + img=`${TEMPFILE} --suffix '.jpg'` |
| 96 | eval "${CONVERT} ${cmd} ${img}" | 96 | eval "${CONVERT} ${cmd} ${img}" |
| 97 | setroot "${MYDISP}" "${img}" | 97 | setroot "${MYDISP}" "${img}" |
| 98 | rm ${img} | 98 | rm ${img} |
Please
register
or
login
to post a comment