I would like to be able to drag&drop url with mouse to a desktop script and this way start a youtube's download. The point, is I dont know how to pass URL dragged from mouse to script bash.
I can do it, by copying url, and then invoking script, but I would prefer to start the downlading by dragging the mouse's pointer into the script.
Until now, Ive got this Solution (copying url and then invoking script):
Can you Help me and show how to get URL by dragging it into script???,URI=$(xclip -o) # Get URL from clipboard
xterm -e youtube-dl -f best -i $URI
Thanks a lot