[SailfishDevel] QStandardPaths not working when app is run from Launcher
vesa-matti.hartikainen at jolla.com
Mon Jan 20 09:19:38 UTC 2014
I think QStandardPaths use applicationName and organizationName when
So solution would be something like
And then QStandardPaths will start giving paths that follow harbour
On 01/19/2014 05:32 PM, Robin Burchell wrote:
> Can you please provide a small sample demonstrating this? As I'm quite
> sure it works for our own uses.
> On 19 Jan 2014, at 14:34, Sylvain B. <sthocs at hotmail.com
> <mailto:sthocs at hotmail.com>> wrote:
>> My app did not want to read the some cached content it was supposed
>> to have written inQStandardPaths::CacheLocation.
>> To understand why, I tried to run it from the terminal, and...
>> everything is working fine.
>> Since we don't have logs when we run the app directly from Launcher,
>> I updated it to display some logs directly in the UI and I figured
>> out that, when the app is run from the Launcher on the actual device
>> (it's ok on the emulator), QStandardPaths does not work correctly:
>> XXXXX is a random number, so each time I run my app, it creates a new
>> When run from terminal,QStandardPaths::CacheLocationcorrectly returns
>> I tried withQStandardPaths::DataLocationbut it's the same, I get
>> So for the moment, I temporarily hardcoded /home/nemo/.cache/
>> SailfishOS.org <http://sailfishos.org/>Devel mailing list
> SailfishOS.org Devel mailing list
p. +358 50 487 6067
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel