ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #04120
Re: Need picture_files policy in mg app
On Sunday 15 September 2013 18:33:45 Thomas Voß wrote:
> [...]
> > 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.
With that not even the integrated camera-app would be able to store pictures
into it, no?
>
> I'm trying to understand this app's concrete use-case better to
> propose a way forward.
But somehow there must be a way to exchange data between apps I think.
Also stuff like music files can't be owned by one music player without access
for others. How would you write an app that can stream your music/video files
via DLNA? Or just an alternative music player?
Another use case would be some application that can create pictures. For
example some pimped camera app, or some avatar creation app. It should be
possible to save that to the same location as the other pictures.
Probably providing some pool of "shared" media data via the Document Gallery
could be a possibility?
http://qt.gitorious.org/qt/qtdocgallery
Br,
Michael
>
> 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