Hello,<br><br><div class="gmail_quote">Florian Boor <span dir="ltr"></span>wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>This sounds like "$MYDOCSDIR" is not set on the device and the application ends<br>
up trying to write it to the root directory.<br></blockquote><div>Is it not ?<br>Why is it set on the SDK so ? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
> Where should we write files to ?<br>
<br>
</div>/home/user/ or the documents directories below would be safe. I assume that<br>
$HOME is set at least so that you could base the actual path on this.<br></blockquote><div><br>I use this, that should do the trick ...<br><br> docsDir = getenv("MYDOCSDIR");<br> if (docsDir != NULL) {<br>
myDir = g_strconcat(docsDir, "/.documents", NULL);<br> } else {<br> myDir = g_strdup("/home/user/MyDocs/.documents");<br> }<br><br></div></div>And it looks like a reboot of the device did it ...<br>
check bug <a href="https://bugs.maemo.org/show_bug.cgi?id=5252" target="_blank">https://bugs.maemo.org/show_bug.cgi?id=5252</a><br><br>Thanks for your time<br><br>Fred<br>