Closed simonschmeisser closed 1 year ago
Thanks for this report, which did lead me into the right direction to fix at least one of the causes for "Token List is Empty after App Restart"
Apparently since the introduction of SailJail the old location of the database (harbour-sailotp/harbour-sailotp/ which followed an old scheme for application and organization naming) is not kept during an app restart, at least for new installs. This results in all token entries being lost each time one closes the app. When using the new path (org.seiichiro0185/harbour-sailotp) this doesn't happen.
I have created a new release 1.11.1 which should fix this. (see https://openrepos.net/content/seiichiro0185/sailotp since it might take a few days until it lands in the Jolla Store). From this release onwards ~/.local/share/org.seiichiro0185/harbour-sailotp/ will be used for storing the application data. The new release will migrate the old database, but since I'm not sure if the tokens where saved to the db at all I can't say if the migration will bring back the old tokens (had no time to test that for now)
Please test if the new release works better for you, and don't hesitate to report back here if it doesn't.
Thanks for the quick fix, I looked at the database in the old place (harbour-sailotp/harbour-sailotp/) and it appears to be empty so they are not likely to reappear :wink:
I re-added one account where it (too?) easy to reset and it survived both an application as well as a device restart, let's hope for the best :+1:
I started using sailotp and added two keys. Later, possibly after updating SFOS (but I'm not sure on that unfortunately ...) the screen is empty.
According to stack overflow the database used via
QtQuick.LocalStorage 2.0
is stored in~/.local/share/*project_name*/QML/OfflineStorage/Databases
(see https://stackoverflow.com/questions/44168962/how-to-decide-where-the-sqlite-file-is-stored-in-qml-localstorage)Now actually I see two folders in
~/.local/share
:harbour-sailotp/harbour-sailotp/
which contains some dborg.seiichiro0185/harbour-sailotp/
which is emptycopying the database unfortunately does not suffice to make them reappear