a full plugin example
Submitted by an unknown user
Link to original bug (#718889)
Description
---- Reported by shotwell-maint@gnome.bugs 2012-08-07 10:08:00 -0700 ----
Original Redmine bug id: 5632
Original URL: http://redmine.yorba.org/issues/5632
Searchable id: yorba-bug-5632
Original author: lemmel lemmel
Original description:
Is it possible to have an example that goes further than the simple-plugin one ?
I want to add a plugin that allow to send a mail with photos as attachments but simple-plugin is too simple :
- it does not expose service
- it does not use shotwell api (such as get all marked pictures, and so on).
---- Additional Comments From shotwell-maint@gnome.bugs 2013-05-01 11:45:00 -0700 ----
History
Comment 1
Updated by Lucas Beeler over 1 year ago
- Resolution set to invalid
This feature already exists in Shotwell via Nautilus "Send To..." Just right- click on a photo (or a group of selected photos) and choose "Send To..."
What's more, even if this feature didn't yet exist, the Shotwell plugin system doesn't have an API extension point for doing arbitrary things with photo sets. The idea of a "service" in the Shotwell plugin system clearly means "web service," as in something one interacts with via HTTP.
Marking as invalid.
Comment 2
Updated by lemmel lemmel over 1 year ago
Hi.
What is "via Nautilus "Send To..."" feature ? I'm wih KDE and all I have is, on a right mouse clic, a "Open with file browser"[1] ; and then I can use the regular file explorer.
But it is on a per file basis; what if you have different directories from which you want to get pictures to send by email? Furthermore, my picture files don't have nice names such as "2012 07 10 - dinner with friends.JPG", but have names such as "DSCF10002.JPG".
But I understand from your answer that there is no possibility to interact with shotwell through an API. As it is stated in this page "http://redmine.yorba.org/projects/shotwell/wiki/ShotwellArchWritingPlugins", I have to wait until peas is stable.
Thanks.
P.S. : the invalid tag seems to me quite harsh; wontfix seems to be more adequate.
[1] Sorry I'm not a native speaker, so it doesn't really say "Open with file browser"; it says "Ouvrir dans le gestionnaire de fichier"
Comment 3
Updated by Adam Dingle over 1 year ago
lemmel lemmel,
when you run Shotwell on a GNOME desktop, you can right click any photo and choose Send To, which takes you to a dialog where you can send the photo to an email program or other destinations. I haven't tried running on a KDE desktop, but I wouldn't be surprised if this doesn't work there since this is essentially a feature of Nautilus, I believe.
If you want to send a bunch of photos from different events via email, you can flag them all, then visit the Flagged view, select them all, right click and choose Send To. I think that works pretty well.
Shotwell's plugin system is limited today: a plugin can only expose new publishing destinations, import sources or slideshow transitions. That's all. Plugins have no access to Shotwell's underlying data model; implementing that is #1603 (closed). Yes, we'd like to support libpeas; that's #3408 (closed). libpeas wasn't quite mature enough for us to use when we first implemented plugins in Shotwell, but I think we could quite reasonably port to it now.
We marked this as invalid rather than wontfix because it would be impossible to implement: Shotwell's plugins can't do what you want, so there's no way we could write an example that does that. You shouldn't feel bad, though - your suggestions are reasonable, but are really covered in separate tickets (#1603 (closed) and #3408 (closed)).
Comment 4
Updated by Adam Dingle over 1 year ago
- Status changed from Open to 5
Comment 5
Updated by Charles Lindsay 7 months ago
- Status changed from 5 to Invalid
--- Bug imported by chaz@yorba.org 2013-11-25 21:58 UTC ---
This bug was previously known as bug 5632 at http://redmine.yorba.org/show_bug.cgi?id=5632
Unknown Component Using default product and component set in Parameters Unknown version " in product shotwell. Setting version to "!unspecified". Unknown milestone "unknown in product shotwell. Setting to default milestone for this product, "---". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
Resolution: RESOLVED INVALID