<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">standardLocations returns a
QStringList. I use writableLocation. It has worked for me and
testers well so far on Windows, OS X and several flavors of Linux.<br>
<br>
On 8/13/2013 8:57 PM, Wim de Vries wrote:<br>
</div>
<blockquote cite="mid:520A111C.9010204@xs4all.nl" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 08/13/2013 12:12 PM, Stefan Lahner
wrote:<br>
</div>
<blockquote cite="mid:520A068B.2080104@gmx.at" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix"><font face="Helvetica, Arial,
sans-serif">Hello,<br>
<br>
I just tried both (QDir and <span class="preprocessor">QStandardPaths</span>)
and this:<br>
<br>
<span style=" color:#000080;"> qDebug</span><span style="
color:#000000;">()</span><span style=" color:#c0c0c0;"> </span><span
style=" color:#000000;"><<</span><span style="
color:#c0c0c0;"> </span><span style=" color:#008000;">"QDir:"</span><span
style=" color:#c0c0c0;"> </span><span style="
color:#000000;"><<</span><span style="
color:#c0c0c0;"> </span><span style=" color:#800080;">QDir</span><span
style=" color:#000000;">::</span><span style="
color:#000000;">homePath</span><span style="
color:#000000;">();</span> <br>
<span style=" color:#000080;"><span style=" color:#000080;">
</span>qDebug</span><span style=" color:#000000;">()</span><span
style=" color:#c0c0c0;"> </span><span style="
color:#000000;"><<</span><span style="
color:#c0c0c0;"> </span><span style=" color:#008000;">"QStandardPaths:"</span><span
style=" color:#c0c0c0;"> </span><span style="
color:#000000;"><<</span><span style="
color:#c0c0c0;"> </span><span style=" color:#800080;">QStandardPaths</span><span
style=" color:#000000;">::</span><span style="
color:#000000;">standardLocations</span><span style="
color:#000000;">(</span><span style=" color:#800080;">QStandardPaths</span><span
style=" color:#000000;">::</span><span style="
color:#800080;">HomeLocation</span><span style="
color:#000000;">);</span><br>
<span style=" color:#000000;"></span><span style="
color:#000000;"><br>
</span><span style=" color:#000000;"></span>returned this:<br>
<br>
<big><big><span style="font-size: 10pt; color: rgb(170, 0,
0);"><big> </big>QDir: "/home/nemo" </span> <br>
<span style="font-size: 10pt; color: rgb(170, 0, 0);">
QStandardPaths: ("/home/nemo")</span></big><br>
</big></font></div>
</blockquote>
<br>
<font face="Helvetica, Arial, sans-serif">Thanks.<br>
I didn't consider this member for it can output multiple
strings.<br>
And not being sure what variants it will output (on different
systems/in the future) when I query for </font><font
face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif"><span style=" color:#000000;"></span><span
style=" color:#800080;">Home..</span></font>, I ignored it.<br>
r<br>
wim<br>
</font>
<blockquote cite="mid:520A068B.2080104@gmx.at" type="cite">
<div class="moz-cite-prefix"><font face="Helvetica, Arial,
sans-serif"><big> </big><br>
Regards,<br>
Stefan<br>
<br>
</font>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font face="Helvetica, Arial, sans-serif"><span style=" color:#000000;"></span></font></pre>
<font face="Helvetica, Arial, sans-serif">Am 13.08.2013 11:21,
schrieb Wim de Vries:<br>
</font></div>
<blockquote cite="mid:5209FA86.9050003@xs4all.nl" type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">On 08/13/2013 10:59 AM, Joseph Crowell wrote:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">It's QStandardPaths::HomeLocation under Qt 5.
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://qt-project.org/doc/qt-5.0/qtcore/qstandardpaths.html">http://qt-project.org/doc/qt-5.0/qtcore/qstandardpaths.html</a>
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">
Cant find a member that returns the full path to users home in that
class, just "Home".
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">On 8/13/2013 1:31 AM, Eric Chan wrote:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">there's not property?
在 2013-8-12,下午11:07,Bob Jelica <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:sailfish@jelica.se"><sailfish@jelica.se></a> 写道:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">Hey,
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!
//Bob
On Aug 11, 2013, at 1:55 PM, Wim de Vries <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:wsvries@xs4all.nl"><wsvries@xs4all.nl></a> wrote:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">On 08/11/2013 01:36 PM, "Thomas B. Rücker" wrote:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">On 08/11/2013 12:21 PM, Wim de Vries wrote:
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">Hi,
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
denied"
>From within ubuntu I have made the file (GEO1) and dir (checklists)
r/w for all.
Thanks.
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">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.
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">Thanks.
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 ;-(
r
wim
</font></pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">Cheers
Thomas
_______________________________________________
SailfishOS.org Devel mailing list
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">_______________________________________________
SailfishOS.org Devel mailing list
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">_______________________________________________
SailfishOS.org Devel mailing list
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">_______________________________________________
SailfishOS.org Devel mailing list
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">_______________________________________________
SailfishOS.org Devel mailing list
</font></pre>
</blockquote>
<pre wrap=""><font face="Helvetica, Arial, sans-serif">
_______________________________________________
SailfishOS.org Devel mailing list</font></pre>
</blockquote>
<font face="Helvetica, Arial, sans-serif"><br>
</font> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
</body>
</html>