<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style><div><br></div><div>I'm trying to write a small number of files out to the file system that contain application-specific information. </div><div><br></div><div>For some reason when I try to open a file with QIODevice::ReadWrite access in the following directory it fails every time (the file should be instantiated as a result of the QFile::open() call):</div><div><br></div><div><pre style="margin-top: 0px; margin-bottom: 0px;"><span style=" color:#800080;">QString</span><span style=" color:#c0c0c0;"> </span>mainFileName<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QStandardPaths</span>::writableLocation(<span style=" color:#800080;">QStandardPaths</span>::<span style=" color:#800080;">DataLocation</span>)<span style=" color:#c0c0c0;"> </span>+<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"/"</span><span style=" color:#c0c0c0;"> </span>+<span style=" color:#c0c0c0;"> </span>KUserProfilesFilename;</pre><pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><font face="Calibri">Which results in the following filename:</font></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><font face="Calibri"><br></font></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><span style="color: rgb(170, 0, 0);"><font face="Calibri" size="3" style="font-size: 12pt;">/home/nemo/.local/share/imagewiz/userprofiles.txt</font></span></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><span style="color: rgb(170, 0, 0);"><font face="Calibri" size="3" style="font-size: 12pt;"><br></font></span></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><font face="Calibri" size="3" style="font-size: 12pt;">I'm not terribly well versed in Sailfish's file structure, what's the approved way of querying an application's write access enabled area?</font></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><font face="Calibri" size="3" style="font-size: 12pt;"><br></font></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><font face="Calibri" size="3" style="font-size: 12pt;">Thanks,</font></pre><pre style="margin-top: 0px; margin-bottom: 0px;"><font face="Calibri" size="3" style="font-size: 12pt;">Mark</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><br></pre></div> </div></body>
</html>