dnd
The “yad --dnd” dialog must be assigned a method.
This below script uses the --interp command method and as coded when you drag a url (can be a local file like image, text file, folder path. ) is opened in the yad browser.
Code begins next line ---------------------
#!/bin/bash
# Yad Drag & Drop to open hyperlink in NEW YAD Window
# Author: Robert Cooper "Offternet" 08-17-2022 / Based on code from text version by Victor Ananjevsky
# License: GPL 3
function uri_hndl {
yad --width=1300 --height=800 --center --button="Close" --html --browser --uri="${1:7}"
}
export -f uri_hndl
yad --width=250 --height=100 --text="Drop Hyperlink Here" --dnd --use-interp --command='uri_hndl "%s" '
Code ended above line -------------------