Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Suppose I want to execute

pdftk input FilesHighlightedInX out specifiedByUserInX

in the following way:

  1. User highlights files in X

  2. User clicks some button, shortcut, right-mouse-button-select, to execute a Bash script with the pdftk command

  3. The output file will appear in the directory where the user executed the command (the user can specify the name of the output or not, modular functionality)

How can I do this in X?

share|improve this question
    
You don't highlight files in X. Try again. –  Ignacio Vazquez-Abrams Feb 2 '12 at 9:36
    
Achievement unlocked! –  sr_ Feb 2 '12 at 10:00
    
@sr_: Plan9 doesn't run X. –  Ignacio Vazquez-Abrams Feb 2 '12 at 10:14
    
@IgnacioVazquez-Abrams: But plan9port runs on Linux (amongst others) and includes Acme and Plumber. :) –  sr_ Feb 2 '12 at 10:28

1 Answer 1

up vote 1 down vote accepted

Assuming you accept marking a file icon in a file browser (such as GNOME's Nautilus) as highlighting, "Nautilus-Actions" could be interesting to you:

Nautilus-Actions is a Nautilus extension whose principal function is to allow the user to add arbitrary actions to the file manager context menus. These actions may be organized in menus and submenus, exported and shared with other desktop environments.

(There're Debian and Ubuntu packages, too. And some screenshots and explanations on makeuseof.com)

For KDE4, i.e. Dolphin, there's something quite similar already integrated, "Service Menus" (via .desktop files) in ~/.kde/share/kde4/services/ (or whatever kde4-config --path services returns).

Lots of ready-made service menus are on kde-apps.org.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.