ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #03957
Re: Fwd: Where to save my files?
-
To:
ubuntu-phone@xxxxxxxxxxxxxxxxxxx
-
From:
Jamie Strandboge <jamie@xxxxxxxxxxxxx>
-
Date:
Tue, 03 Sep 2013 13:01:25 -0500
-
In-reply-to:
<CAPsD8s8NtazZZ_htHM5Fp=V_CPNBv1+Ph8qtkh5=+TgoDD+FLA@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8
On 08/31/2013 12:17 PM, Sam Segers wrote:
> Forwarding to mailing list
>
> ---------- Forwarded message ----------
> From: *Sam Segers* <sam.sgrs@xxxxxxxxx <mailto:sam.sgrs@xxxxxxxxx>>
> Date: 2013/8/31
> Subject: Re: [Ubuntu-phone] Where to save my files?
> To: Fabio Colella <fcole90@xxxxxxxxx <mailto:fcole90@xxxxxxxxx>>
>
>
> I wanted to know where we got access to so I asked this question before and got
> this answer:
> https://lists.launchpad.net/ubuntu-phone/msg03861.html
> So I have hard coded ~/.local/share/com.ubuntu.developer.user.app in my qml file
> for now (qml only app).
> This seems to work under confinement.
>
You should do this (though, you would probably want to use Qt APIs for
~/.local/share).
> You'd probably want to store them in ~/Pictures or something. Then you'll have
> to take a look at policy_groups that permit access to them. See:
> https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement/Manifest
> I see a goup called picture_files that should be worth looking into.
>
This you should not do. The picture_files* are not really meant for most apps to
use, but instead for special apps that we may deliver updates for via click (eg,
the gallery). You should instead use the content_exchange policy group and the
content hub API.
>
> 2013/8/30 Fabio Colella <fcole90@xxxxxxxxx <mailto:fcole90@xxxxxxxxx>>
>
> Hello, I'm creating U-Draw app. I should like to know where should I save my
> files using the app. How to set the path in the code?
>
> Thank you in advance :)
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
--
Jamie Strandboge http://www.ubuntu.com/
Attachment:
signature.asc
Description: OpenPGP digital signature
References