[SailfishDevel] Update changes LocalStorage location?

Stefan Brand stefan.brand at seiichiro0185.org
Fri Jan 31 19:44:48 UTC 2014

Well, I just used the default sailfish app template from the SDK...

In an IRC-Log I saw thp mention that setting organizationName and 
organizationDomain to "" will revert back to the old path. So i changed 
my main() in the cpp to this:

int main(int argc, char *argv[])

   // Fix move of LocalStorage in libsailfishapp

   return SailfishApp::main(argc, argv);

Unfortunately this doesn't seem to work. The first line setting the 
application version is working fine, but it still uses the new storage 
path. What am I doing wrong here?

Am 31.01.2014 20:24, schrieb Andrey Kozhevnikov:
> yes, default path was changed. you might need to set your own
> applicationName, organizationName. good written apps wasnt affected by
> update ;)
> https://github.com/sailfish-sdk/libsailfishapp/commit/3febb7a2204cf13f01ab9e9ff86a84afc9b137d7
> On 01.02.2014 00:31, Stefan Brand wrote:
>> Hi there,
>> I just installed the latest update to my Jolla. Afterwards I 
>> opened SailOTP (the app I wrote) and was greeted with an empty screen. 
>> All off my OTP-Tokens where gone.
>> A little investigation shows that the LocalStorage DB was moved 
>> somehow.
>> Before the update it was in 
>> /home/nemo/.local/share/harbour-sailotp/QML/...
>> After the update a new DB was created in 
>> /home/nemo/.local/share/harbour-sailotp/harbour-sailotp/QML/...
>> Copying the old QML-folder into the second harbour-sailotp folder 
>> brought back my tokens.
>> I didn't do any updates to my app, so this can only be caused by the 
>> system update. So did anyone else see this behavior with other apps? I 
>> think this might be a bug, so any thought on this?
>> Thanks in advance.
>> Regards
>> Stefan Brand
>> _______________________________________________
>> SailfishOS.org Devel mailing list
> _______________________________________________
> SailfishOS.org Devel mailing list

More information about the Devel mailing list