You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, February 14th 2004, 10:47pm

Creating a Service Menu

I want to create an "action" so that when I right click on an mp3 file I have the option of copying the file to /media/mp3player (where my mp3player is mounted). I have created the following file:

[Desktop Entry]
ServiceTypes=audio/x-mp3
Actions=sendtomp3player

[Desktop Action sendtomp3player]
Name=Send To MP3 Player
Exec=cp /media/mp3player

The problem clearly is the last line. Can someone tell me the correct command line to enter for copying the file I've right-clicked on?

Thanks.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Sunday, February 15th 2004, 11:16am

%f is the filename
%F is a list of filenames

Cheers,
_
Qt/KDE Developer
Debian User