[maemo-developers] Write file

From: Florian Boor florian.boor at kernelconcepts.de
Date: Thu Oct 1 14:15:17 EEST 2009

Fred Lefévère-Laoide schrieb:
> pwsafe writes the file it creates in the $MYDOCSDIR/.documents 
> (Documents) by default.
> No problemo in the SDK
> But testers have reported a problem in actual device : write error !

This sounds like "$MYDOCSDIR" is not set on the device and the application ends
up trying to write it to the root directory.

> What rights does the app run with ?

It runs as a normel, non-privileged user.  (Called "user" btw.).

> Where should we write files to ?

/home/user/ or the documents directories below would be safe. I assume that
$HOME is set at least so that you could base the actual path on this.



The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        florian.boor at kernelconcepts.de
More information about the maemo-developers mailing list