[SailfishDevel] Cannot access phone book on phone when starting app from QtCreator

Matthias Barmeier barmeier at barmeier.com
Mon Jan 6 22:17:39 UTC 2014


Hi Andrey,

Thanks A Lot !!!

That worked without any problems.

In QtCreator went to Projects. I set the Execute/Run ? (my QtCreator is 
in German) and set the executable to /usr/bin/invoker.
After setting the arguments to "--type qtquick2 /usr/bin/<appname>" I 
can start the app and get access to the contacts DB.

Thanks again.

Ciao
     Matze


Am 06.01.2014 14:16, schrieb Andrey Kozhevnikov:
> change your launch parameters to use invoker
>
> On 06.01.2014 19:14, Ove Kåven wrote:
>> Den 05. jan. 2014 23:10, skrev Matthias Barmeier:
>>> Hi,
>>>
>>> I am unable to access the phone book when running my app from QtCreator
>>> on the phone.
>>> Is this a security feature ?
>>
>> I've needed to access PIM data myself, so, as far as I can tell from 
>> my own investigations, yes, it's Unix security. The directory 
>> .local/share/system/privileged is only accessible to processes that 
>> are in the "privileged" group.
>>
>> The standard boosters (used by mapplauncherd) seem to be sgid 
>> "privileged", thus automatically giving Qt/QML apps that use them the 
>> necessary privileges (at least when launched from the phone menu, I 
>> suppose). But when you just launch something using ssh (not 
>> mapplauncherd), the apps probably won't belong to that group 
>> automatically.
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>
> _______________________________________________
> SailfishOS.org Devel mailing list



More information about the Devel mailing list