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