nitrotasks / nitro

The beautiful way to get things done.
https://nitrotasks.com
GNU Affero General Public License v3.0
518 stars 66 forks source link

Purge should remove everything (Ubuntu) #108

Open jaywink opened 12 years ago

jaywink commented 12 years ago

Managed to mess up the tasks by playing with nitro_data.json in my Dropbox folder. Now nothing will sync and All items doesn't even open.

All that was my fault :) But what doesn't work is that doing "apt-get purge nitrotasks" and "apt-get install nitrotasks" doesn't actually get rid of any tasks. Purge should remove all application data (Debian policies).

Where does Nitro store tasks internally, tried finding but couldn't figure it out. Some kind of local storage for web apps?

stayradiated commented 12 years ago

~/nitrodata.pkl ~/.local/share/webkit/databases/file__0.localstorage

I have added in a cleaning tool into Nitro that should automatically fix any errors in the database. Doesn't seem to be working in your case though.

jaywink commented 12 years ago

Ok thanks, deleted both and now the app works again. I think these settings should be deleted on apt-get purge, sometime in the future.

consindo commented 12 years ago

I don't think this is possible. The webkit file is shared by other apps using webkit and localstorage.

jaywink commented 12 years ago

If the app can add data to the localstorage, surely a script can also be made to remove data when a user purges the debian package? :) Deleting the file totally might not be possible, but that isn't required.

consindo commented 12 years ago

We've added a delete everything button as of 1.4.7. But yes, purge should delete everything.