On 08/11/2013 09:22 PM, Jonni Rainisto wrote:
You must be doing something wrong :)

     qDebug() << getuid();
     system("whoami");
->
100000
nemo
You're right. The above gives the same output (I was using QProcess with no results). Anyway, QDir dp("~/checklists") does not return anything, whereas QDir dp("/home/nemo/checklists") works ok.
That's why I got confused. But the ~ not being recognized may be a Qt issue.

________________________________________
From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Wim de Vries [wsvr...@xs4all.nl]
Sent: Sunday, August 11, 2013 9:53 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] under which user do apps run

Hi,
Trying to find out under which user my app runs.
whoami from within the app returns "".
and ~ has no content.
Thanks.
_______________________________________________
SailfishOS.org Devel mailing list


_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to