[SailfishDevel] file permissions of user data files
eeeeeeeecccccccc at gmail.com
Mon Aug 12 15:31:50 UTC 2013
there's not property?
在 2013-8-12，下午11:07，Bob Jelica <sailfish at jelica.se> 写道：
> Use QDir.homePath() in your app for a safe place to save files. That will always guarantee that you'll have read/write access.
> Have fun!
> On Aug 11, 2013, at 1:55 PM, Wim de Vries <wsvries at xs4all.nl> wrote:
>> On 08/11/2013 01:36 PM, "Thomas B. Rücker" wrote:
>>> On 08/11/2013 12:21 PM, Wim de Vries wrote:
>>>> I am trying to save a file from within my app.
>>>> I can read the file, not write to it:
>>>> cannot open "/etc/ssh/authorized_keys/checklists/GEO1" ; "Permission
>>>> From within ubuntu I have made the file (GEO1) and dir (checklists)
>>>> r/w for all.
>>> Why are you as a *user* trying to write to /etc/?
>>> That's usually completely off limits and for very good reasons I must say.
>> Indeed, you are right. Wrong place to have user data. I didn't focus on where it ends up on the emulator.
>> It seems that this is the place where shared files (from the devel machine: emulator/1/ssh) end up.
>> I guess I have to copy the files via the deployment.
>> I'll try to figure out the documentation on that ;-(
>>> SailfishOS.org Devel mailing list
>> SailfishOS.org Devel mailing list
> SailfishOS.org Devel mailing list
More information about the Devel