ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #04293
Re: App storage
On 09/26/2013 05:00 AM, Manuel de la Pena wrote:
>
> On 26 Sep 2013 11:23, "Sam Bull" <sam.hacking@xxxxxxxx
> <mailto:sam.hacking@xxxxxxxx>> wrote:
>>
>> What's the method required for apps to store data on the phone?
>>
>> We're using a library that simply saves files in the apps current
>> directory, but running on the phone it doesn't seem to have permission
>> to do so.
>>
>> Is there a location we can save the files, which should be easy to
>> change. Or, do we need to do something more complex to save the data?
>>
>
> AFAIK you have to store the data under xdg_data/app_id. If you look at the
> apparmor confinement policy of click packages you will get a more clear picture
> of the rights the application has.
>
It isn't app_id, it is app_pkgname and app_pkgname is the "name" field in the
click manifest. See the wiki[1] for details (moving to developer.ubuntu.com soon).
[1]https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement/Permissions/1.0#Runtime_Environment
--
Jamie Strandboge http://www.ubuntu.com/
Attachment:
signature.asc
Description: OpenPGP digital signature
References