Open Photon89 opened 4 years ago
Attachment: Presets.png
Launchpad Details: #LPC tuxmaniack - 2010-09-04 18:20:26 +0000
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?
Launchpad Details: #LPC Mario Kemper (Romario) - 2010-09-05 21:04:47 +0000
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.
Launchpad Details: #LPC tuxmaniack - 2010-09-06 12:26:12 +0000
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:
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.
Launchpad Details: #LP630365 tuxmaniack - 2010-09-04 18:20:26 +0000