-
-
Notifications
You must be signed in to change notification settings - Fork 125
Deleting a ZIM file should move it to the trash can #479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Honestly, I'm not convinced we should implement that. |
We should not delete the zim file if it was not downloaded by kiwix-desktop itself (if we add it to the library because the user open a existing zim). |
Interesting Qt ticket https://bugreports.qt.io/browse/QTBUG-47703 |
Yesterday, I wanted to remove full wikipedia from kiwix-desktop library. I left clicked on wikipedia and clicked delete - I thought that this would remove wikipedia from kiwix-desktop, but I lost my dump file. I spend about a month to download my dump. |
Moving to trash will not work. Cause the installation partition won't be big enough to contain large dumps. The system will fail and large dump will not be moved to trash. So person who is comfortable that file would be moved to trash, will be really upset after knowing that it's deleted. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
1 similar comment
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
I believe that we shoudl move the ZIM file to the trash instead of just deleting it from the fs. This should at least be the configuration per default. A message at delete time should clearly tell the user that the ZIM is in the trashbox. A settings (deactivated per default) could be done to allow to shortcut trash and immediatly delete "for ever" the file. @juuz0 I wonder a bit of what will happen if a ZIM downloaded in the internal library via Kiwix is then restored from the trashbox. Then it won't reappear in the Kiwix library... and the user might be quite puzzle to know what to do? Do you agree? Do you have an idea to deal with that? |
@juuz0 Any feedback? |
✅
✅
✅
I put the download directory into monitoring (same function as monitor directory) - so if the file is downloaded from kiwix downloader followed by moving it to trash can, if the user restores the file - it appears in Kiwix library too. Test and let me know how it works! |
It was in the back of my mind that there was a bug but I can't reproduce it using the new library code.
I don't think so. I wrote a comment there about a possible way to handle just now. |
When I delete a ZIM file from the library, it is also deleted from the hard disk at the same time! And the basket remains empty!

Ubuntu 18.04 Unity + Kiwix 2.0.1-1 (*.appimage):
The situation is exactly the same in the operating system Ubuntu 18.04 MATE + Kiwix 2.0.1-1 (*.appimage).
The text was updated successfully, but these errors were encountered: