ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #04119
Re: Need picture_files policy in mg app
On Sun, Sep 15, 2013 at 6:13 PM, Michael Zanetti
<michael.zanetti@xxxxxxxxxxxxx> wrote:
> On Sunday 15 September 2013 17:57:35 Thomas Voß wrote:
>> On Sun, Sep 15, 2013 at 10:32 AM, Mario Guerriero <mefrio.g@xxxxxxxxx>
> wrote:
>> > Hi,
>> >
>> > I need to access photos from all apps (in a read only mode) and I need to
>> > access photos from my app which create them using the camera.
>>
>> Hmmm, accessing the content of other applications violates the current
>> confinement approach.
>> Wouldn't it be sufficient for your app to just display the photos
>> taken with your app to the user?
>
> Hmm, I could think of lots of use cases to display pictures from the pictures
> folder within an app. For example image manipulation programs could import
> them, social media apps could want to share them (e.g. attached to a blog
> post), chat applications to select an avatar etc.
>
While the filesystem might have such a folder, the intended way to
solve the use-cases you are mentioning above is the
content-picking/sharing infrastructure.
> I think that an app should not be able to access other app's pictures (e.g.
> stored in /home/phablet/.cache/$APPID/ ) but accessing the common pictures
> folder is probably a must-have in the long run, no?
>
Well, the confinement approach basically says: There is no content on
the phone that is not owned by an app. With that, the pictures folder
would be owned by the default Gallery application and thus,
confinement rules would apply again.
I'm trying to understand this app's concrete use-case better to
propose a way forward.
Cheers,
Thomas
> Br,
> Michael
>
>>
>> Thomas
>>
>> > Thanks for your reply,
>> > Mario
>> > —
>> > Sent from Mailbox for iPhone
>> >
>> >
>> > On Sun, Sep 15, 2013 at 10:05 AM, Thomas Voß <thomas.voss@xxxxxxxxxxxxx>
>> >
>> > wrote:
>> >> Hey Mario,
>> >>
>> >> thanks for your mail. A question first: Do you need to access pictures
>> >> from the file system only from your app or also the pictures of other
>> >> applications? In general, accessing, reading and writing content
>> >> (here: pictures) owned by other applications programmatically without
>> >> user interaction is restricted by our confinement approach.
>> >>
>> >> It would be great if we could understand your use-case a little better
>> >> to help you solve it.
>> >>
>> >> Thanks,
>> >>
>> >> Thomas
>> >>
>> >> On Sun, Sep 15, 2013 at 9:44 AM, Mario Guerriero <mefrio.g@xxxxxxxxx>
>> >>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > Developing my app for the Ubuntu App Showdown contest I implemented a
>> >> > feature which needs to read and write photos from the file system.
>> >> > While
>> >> > packaging it as a click package I added the picture_files policy so
>> >> > that
>> >> > my
>> >> > app would be able to do what I supposed it to do.
>> >> >
>> >> > My problem is that MyApps reviewers told that it is not good to add
>> >> > picture_files policy to any 3rd party app while I really need it for my
>> >> > app.
>> >> >
>> >> > I need the picture_files policy because I need to read and write photos
>> >> > from
>> >> > the file system. Having content_exchange, for example, I would be able
>> >> > to
>> >> > write only.
>> >> >
>> >> > A reviewer suggested me to use the content hub API to do that but since
>> >> > it
>> >> > is not yet available and I need my app to be ready for the end of the
>> >> > contest the only solution I can see is using the picture_files policy.
>> >> >
>> >> > In conclusion I am requesting you to publish my app even if it has the
>> >> > picture_files policy. After the contest I will update it to use content
>> >> > hub
>> >> > API.
>> >> >
>> >> > My app is Memories, here is the link on MyApps
>> >> > https://myapps.developer.ubuntu.com/dev/click-apps/60/
>> >> >
>> >> > Best Regards,
>> >> > Mario
>> >> >
>> >> > Sent from my iPhone 5
>> >> >
>> >> > --
>> >> > Mailing list: https://launchpad.net/~ubuntu-phone
>> >> > Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> >> > Unsubscribe : https://launchpad.net/~ubuntu-phone
>> >> > More help : https://help.launchpad.net/ListHelp
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
Follow ups
References