Feature request: Custom actions

Bug #630365 reported by tuxmaniack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shutter
Confirmed
Wishlist
Mario Kemper (Romario)

Bug Description

Using Shutter I was thinking about custom useractions. Idea is to apply custom commands to image from Shutter as external commands.

Example:
If I want to apply some custom command, after taking screenshot, with I could choose that from menu with pre-defined presets. (See attached screenshot).

Just plain simple like "command -options %i" where %i image location, then Shutter check exit status and reports "Command successful" or "Error occurred".

Edit presets window should include:
 * Title;
 * Run type (Terminal - show stdout and stderr to user / Program - show only status "OK" or "Error");
 * Command.

That would make not really plug-ins but simple custom commands that will extend application. This is possible already as plugins, but may bee too much for simple commands. Or you can maybe add some plugin wizard for adding simple commands as plugins.

I attached Screenshot how it may look.

Revision history for this message
tuxmaniack (tuxmaniack) wrote :
description: updated
tuxmaniack (tuxmaniack)
description: updated
description: updated
tuxmaniack (tuxmaniack)
description: updated
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

I like the idea. Any security concerns? Shutter would execute any command entered by users, e.g. rm -rf /. Certainly this is possible with any terminal as well. Should be no problem then, right?

Revision history for this message
tuxmaniack (tuxmaniack) wrote :

I'm happy that you like idea.

Similar features in different implementations for specific purposes is available in many applications e.g. Krusader, AutoKey. After all it's the user's responsibility to check his inputs.

Sure user can enter any command. It will succeed only if the program will be run with root rights, but It still can wipe home directory. For safety, you can check if %i (image location) in parameters is supplied (this will not prevent from bad manipulation), or blacklist rm command at all, rm isn't necessary, we can always use 'Move to Trash' from Shutter, and use commands that doesn't make any temps that need to be removed. Big scripting will not happen using this feature, its for simple commands, if user wants more - he makes plug-in, or links script to that field.

Changed in shutter:
milestone: none → 0.90
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Mario Kemper (Romario) (mario-kemper)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.