how to create your own plugin?

Asked by Michael Tunnell on 2010-07-26

I am wanting to make my own plugin for Shutter but I can't find documentation anywhere on how to do it could you point me in the right direction?

Question information

Language:
English Edit question
Status:
Answered
For:
Shutter Edit question
Assignee:
No assignee Edit question
Last query:
2010-07-26
Last reply:
2013-08-16

It is not documented yet, sorry.

Please have a look at the naming scheme of the plugins. They are located at:
/usr/share/shutter/resources/system/plugins/{bash,perl}

You can also place them in your home directory at (create such a directory if it is not there):
$ENV{'HOME'}/.shutter/plugins/{bash,perl}

You might want to copy (and rename) one of the existing plugins first
and see how the structure looks like. This is how a template for a bash plugin looks like:
http://pastebin.com/KE4e35UU

Shutter will detect any new plugin automatically. Please don't hesitate to ask a question if anything is not clear or you need further assistance.

Regards
Mario

Droidzone (dz-2) said : #2

This didnt work for me..

I just made a test plugin from your template, added it to a subdirectory in /usr/share/shutter/resources/system/plugins/shell (and also tried putting it in /usr/share/shutter/resources/system/plugins), added 755 permissions, tried closing and reopening Shutter. It didnt list the plugin there

http://pastebin.com/AvBH9tdj

You need to create a new folder in
/usr/share/shutter/resources/system/plugins/shell that has the same
name as the script.
E.g. create a directory named myscript and then place the bash-script
myscript there.

Does that work for you?

Regards
Mario

2012/5/12 Droidzone <email address hidden>:
> Question #118974 on Shutter changed:
> https://answers.launchpad.net/shutter/+question/118974
>
> Droidzone posted a new comment:
> This didnt work for me..
>
> I just made a test plugin from your template, added it to a subdirectory
> in /usr/share/shutter/resources/system/plugins/shell (and also tried
> putting it in /usr/share/shutter/resources/system/plugins), added 755
> permissions, tried closing and reopening Shutter. It didnt list the
> plugin there
>
> http://pastebin.com/AvBH9tdj
>
> --
> You received this question notification because you are an answer
> contact for Shutter.

rubo77 (rubo77) said : #4

You also have to set the right filesettings. here is a nice tutorial: http://askubuntu.com/a/329830/34298

It shows you how to create a plugin that recompresses png image files to a smaller size

Can you help with this problem?

Provide an answer of your own, or ask Michael Tunnell for more information if necessary.

To post a message you must log in.