Add "save to app" functionality

Bug #1621401 reported by Alberto Mardegan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
InstantFX
New
Wishlist
Unassigned

Bug Description

After editing an image, it's automatically exported to the Gallery. It would be nice to add an option to save the image into another program (like Imaginario).

It could also be cool to remember the appId of the source app (there is a "source" property in the transfer object: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.4/Ubuntu.Content.ContentTransfer/#source-prop ) and save the image back to that app (if the app is also registered as a ContentHandler.Destination).

Revision history for this message
Stefano Verzegnassi (verzegnassi-stefano) wrote :

Ciao Alberto,

InstantFX automatically finalizes the content transfer using gallery-app since there's no other way to export a picture to user's "Pictures" folder (not without an AppArmor exception, at least).

One of the most relevant drawbacks is that the 'source' application gets unfocused in order to provide a "visual" feedback of the transfer.
Sadly, this breaks any user flow I've tried to implement.

Anyway, the feature you propose is something interesting to have.
It could work as follow:

1) Edit your picture. Tap on 'DONE'.
2) The picture is saved in user's "Pictures" folder. This happens using an AppArmor exception[1].
3) InstantFX provides a "Share" page, which allows to send the pictures back to the application used as content peer when importing.

[1] which implies the application should be released in the OpenStore.

Changed in instantfx:
importance: Undecided → Wishlist
Revision history for this message
Alberto Mardegan (mardy) wrote :

What if instead you implement something like this:

    ContentPeerModel {
        id: destinationsModel
        contentType: ContentType.Pictures
        handler: ContentHandler.Destination
    }

1) when importing, you remember the source appId
2) when the user taps on Done, you check whether the original appId is also present in destinationsModel.peers
3a) if it is, you initiate a transfer to this app
3b) if it isn't, you save to the gallery app like you are doing now

In this way, you don't need any additional UI, and there's no need for the app to be in the OpenStore.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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