Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-09-15 21:09:41

tuxolero
Member
Registered: 2013-02-10
Posts: 62

Can I create a launcher on the desktop to drop things onto?

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

#2 2024-09-15 22:50:29

gogogadget
Member
Registered: 2023-03-19
Posts: 28

Re: Can I create a launcher on the desktop to drop things onto?

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

#3 2024-09-16 08:50:22

tuxolero
Member
Registered: 2013-02-10
Posts: 62

Re: Can I create a launcher on the desktop to drop things onto?

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

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 518.8 KiB (Peak: 519.8 KiB) ]