It is intentional that the outer shell do not expand "$0".
@@ -48,6 +48,7 @@ fi
case "$filename" in
*://*)
+ # shellcheck disable=SC2016
exec /usr/lib/qubes/qrexec-client-vm "$target" qubes.OpenURL /bin/sh -c 'printf "%s\n" "$0"; cat >/dev/null' "$filename"
;;
*)