You are not logged in.
Hi,
I'd like to create a launcher where I can drop e.g. URLs onto and then it starts a script that downloads the URL and some auxiliary files.
I've already tested that I can drag and drop URLs from Firefox to an open application like an editor and even the terminal. However, I could not figure out how to use drag&drop as parameter to open an application.
Something like Command: /path/to/my/script.sh $1
At the moment, the launcher does not even start by dropping something, so I'm stuck in my experiments.
Edit:
Why can't I just use the browser to save the page?
Because the URLs can be something special like YouTube video URLs which the browser can't directly save.
/Edit:
Is this possible at all and if so, how?
If it's not possible, this is a feature request. :-)
Regards,
tuxolero
Last edited by tuxolero (2024-09-15 22:14:05)
Offline
Hello,
I use a launcher for downloading a video from an URL, the command is :
terminator -e 'yt-dlp "%u"'
It opens my terminal emulator Terminator, which launch yt-dlp "%u", %u is the dropped URL.
(%u is between double quotes because I had problems with some URL)
/path/to/my/script.sh %u should work.
EndeavourOS
Xfce+gtk3-classic (no CSD)+Picom
Offline
Looks like I'm missing something ... I added the "%u" as you advised, but when I drop an URL on the launcher, it still does not launch. I've checked the "Run in terminal" option.
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 518.8 KiB (Peak: 519.8 KiB) ]