[SailfishDevel] under which user do apps run

Wim de Vries wsvries at xs4all.nl
Sun Aug 11 20:29:17 UTC 2013


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-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of Wim de Vries [wsvries at xs4all.nl]
> Sent: Sunday, August 11, 2013 9:53 PM
> To: devel at 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
>



More information about the Devel mailing list