-
Notifications
You must be signed in to change notification settings - Fork 301
Ensure sqlite folder is removed after clear cache / hard reset #1585
Conversation
title="Couldnt remove app files" | ||
desc={ | ||
<div> | ||
<p>{'Cache folder couldnt be deleted. You will have to delete it manually.'}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to have all these texts put in wording.
@dasilvarosa could you check wording? thx |
No regression on macos and Ubuntu, sqlite folder is removed without need for user to delete the folder manually (even when application is syncing). On Windows if "Clear cache" or "Reset Ledger Live" action is made just after sync ends, sqlite folder is removed without need for user to delete it manually. |
static/i18n/en/app.json
Outdated
@@ -406,6 +406,13 @@ | |||
"title": "Clear cache", | |||
"desc": "Clearing the Ledger Live cache forces network resynchronization. Your settings and accounts are not affected. The private keys to access your crypto assets in the blockchain remain secure on your Ledger device and on your Recovery sheet." | |||
}, | |||
"resetFallbackModal": { | |||
"part1": "Cache folder couldnt be deleted. You will have to delete it manually.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"part1": "Could not delete cache folder. Please delete the folder manually:",
static/i18n/en/app.json
Outdated
@@ -406,6 +406,13 @@ | |||
"title": "Clear cache", | |||
"desc": "Clearing the Ledger Live cache forces network resynchronization. Your settings and accounts are not affected. The private keys to access your crypto assets in the blockchain remain secure on your Ledger device and on your Recovery sheet." | |||
}, | |||
"resetFallbackModal": { | |||
"part1": "Cache folder couldnt be deleted. You will have to delete it manually.", | |||
"part2": "Click on \"Open folder\", then the ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"part2": "Click the Open folder button, the ",
static/i18n/en/app.json
Outdated
"part1": "Cache folder couldnt be deleted. You will have to delete it manually.", | ||
"part2": "Click on \"Open folder\", then the ", | ||
"part3": "app will close", | ||
"part4": ", and you will have to delete the \"sqlite\" folder.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"part4": ", make sure to delete the "sqlite" folder.",
static/i18n/en/app.json
Outdated
"part2": "Click on \"Open folder\", then the ", | ||
"part3": "app will close", | ||
"part4": ", and you will have to delete the \"sqlite\" folder.", | ||
"part5": "After that, you can restart the app." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"part5": "Then you can restart the app normally."
@@ -24,18 +26,20 @@ class ResetFallbackModal extends PureComponent<Props> { | |||
title="Couldnt remove app files" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title="User action required"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Accidentally resolved one conversation but I think you can find it in history. Dumb GitHub big buttons on mobile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final wording polish ;). I recommend taking away the underline on the app will close, because it distracts from the more important info of deleting the sqlite folder.
static/i18n/en/app.json
Outdated
"part3": "app will close", | ||
"part4": ", and you will have to delete the \"sqlite\" folder.", | ||
"part5": "After that, you can restart the app." | ||
"part4": ", make sure to delete the \"sqlite\" folder.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"part4": ", and manually delete the "sqlite" folder.",
f97f592
to
a9c7467
Compare
closes #1554
Clean cache / hard reset has been reported (& reproduced) failing to remove the
<user-data>/sqlite
folder on Windows (high chance of folder being "hold" by some process, even if we kill libcore before..) and we get some EPERM and ENOTEMPTY (relatable: isaacs/rimraf#72).Fallback here is to detect this behaviour, and provide a workaround: open the user data folder then quit the app, explaining the user he has to delete manually.
Additionally for support guys, here is a video of the process (@dasilvarosa feel free to discuss the wording):
DEMO: