Re: [SailfishDevel] file permissions of user data files

2013-08-13 Thread Joseph Crowell
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. On 8/13/2013 8:57 PM, Wim de Vries wrote: On 08/13/2013 12:12 PM, Stefan Lahner wrote: Hello, I just tried both (QDir and QStandardPath

Re: [SailfishDevel] file permissions of user data files

2013-08-13 Thread Wim de Vries
On 08/13/2013 12:12 PM, Stefan Lahner wrote: Hello, I just tried both (QDir and QStandardPaths) and this: qDebug()<<"QDir:"< Thanks. I didn't consider this member for it can output multiple strings. And not being sure what variants it will output (on different systems/in the future) when

Re: [SailfishDevel] file permissions of user data files

2013-08-13 Thread Stefan Lahner
Hello, I just tried both (QDir and QStandardPaths) and this: qDebug()<<"QDir:"< On 08/13/2013 10:59 AM, Joseph Crowell wrote: >> It's QStandardPaths::HomeLocation under Qt 5. >> http://qt-project.org/doc/qt-5.0/qtcore/qstandardpaths.html > > Cant find a member that returns the full path to users

Re: [SailfishDevel] file permissions of user data files

2013-08-13 Thread Wim de Vries
On 08/13/2013 10:59 AM, Joseph Crowell wrote: > It's QStandardPaths::HomeLocation under Qt 5. > http://qt-project.org/doc/qt-5.0/qtcore/qstandardpaths.html Cant find a member that returns the full path to users home in that class, just "Home". > On 8/13/2013 1:31 AM, Eric Chan wrote: >> there's n

Re: [SailfishDevel] file permissions of user data files

2013-08-13 Thread Joseph Crowell
It's QStandardPaths::HomeLocation under Qt 5. http://qt-project.org/doc/qt-5.0/qtcore/qstandardpaths.html On 8/13/2013 1:31 AM, Eric Chan wrote: > there's not property? > > 在 2013-8-12,下午11:07,Bob Jelica 写道: > >> Hey, >> >> Use QDir.homePath() in your app for a safe place to save files. That will

Re: [SailfishDevel] file permissions of user data files

2013-08-12 Thread Eric Chan
there's not property? 在 2013-8-12,下午11:07,Bob Jelica 写道: > 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 wrote: > >> On 08/11/2

Re: [SailfishDevel] file permissions of user data files

2013-08-12 Thread Bob Jelica
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 wrote: > On 08/11/2013 01:36 PM, "Thomas B. Rücker" wrote: >> On 08/11/2013 12:21 PM, Wim de Vries wro

Re: [SailfishDevel] file permissions of user data files

2013-08-11 Thread Wim de Vries
On 08/11/2013 01:36 PM, "Thomas B. Rücker" wrote: On 08/11/2013 12:21 PM, Wim de Vries wrote: 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

Re: [SailfishDevel] file permissions of user data files

2013-08-11 Thread Thomas B. Rücker
On 08/11/2013 12:21 PM, Wim de Vries wrote: > 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 f

[SailfishDevel] file permissions of user data files

2013-08-11 Thread Wim de Vries
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. _