Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-08-30 10:50:01

nicks27
Member
Registered: 2011-05-18
Posts: 4

[Solved] Launcher command drag-and-drop arguments/parameters

Having created a Launcher icon on my desktop, how is it possible to drag-and-drop a file (or files) onto that launcher icon and have the file(s) passed as aguments/parameters to the Launcher's command?

For example, if my launcher's command is /usr/bin/bladeenc I want to be able to drag a bunch of WAV files onto the launcher icon, and for /usr/bin/bladeenc to be invoked with those WAV files as command arguments/parameters.

Offline

#2 2011-08-30 16:19:28

mmassonnet
Member
From: the milky way galaxy
Registered: 2006-07-30
Posts: 99
Website

Re: [Solved] Launcher command drag-and-drop arguments/parameters

Append the parameter %U after the command, this is a specific argument of the desktop entry standard.

http://standards.freedesktop.org/deskto … 01s06.html


Mike

Offline

#3 2011-08-30 18:49:46

nicks27
Member
Registered: 2011-05-18
Posts: 4

Re: [Solved] Launcher command drag-and-drop arguments/parameters

It turns out I needed the %F option rather than %U because the executable needed filenames rather than URLs, and that worked fine.
Thanks smile

Offline

Board footer

Powered by FluxBB