<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <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><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 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 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 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>
  </body>
</html>