diff --git a/qubes-rpc/qubes.GetImageRGBA b/qubes-rpc/qubes.GetImageRGBA index db68e61..4315b64 100755 --- a/qubes-rpc/qubes.GetImageRGBA +++ b/qubes-rpc/qubes.GetImageRGBA @@ -12,7 +12,7 @@ if [ "${filename%%:*}" = xdgicon ]; then elif [ "${filename}" = "-" ] || [ "${filename##*:}" = "-" ]; then tmpfile="$(mktemp /tmp/qimg-XXXXXXXX)" cat > "${tmpfile}" - if [ "${filename##*:}" = "-" ]; then + if [ "${filename%:*}" != "-" ]; then filename="${filename%:*}:${tmpfile}" else filename="${tmpfile}"