| Summary: | Better handling for cases where the plasmavaultrc or vault data files are missing for whatever reason | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | ratijas <me> |
| Component: | Vaults widget | Assignee: | Ivan Čukić <ivan.cukic> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | ivan.cukic, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.0.0 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
ratijas
2024-06-16 09:37:02 UTC
This is user error: if you're going to go poking around and manually delete the data files, you need to delete the references to them in the config file too. Anyone not enough of a technical expert to know that probably shouldn't be manually deleting stuff from ~/.local/share/! ...But that's not the world we live in, so it's probably reasonable to handle these cases. Another example came up today where a person failed to copy all the files over properly during a restore-from-backup. So IMO these are the cases it would make sense to handle: Data files are missing, but plasmavaultrc file exists: - Show a message in the UI that the vault got broken because its data was deleted. Advise the user to recover it from backup, showing the past that Vaults expects to find it at. Also offer a "delete vault" button they can use to clear the entry and start over if the data files were removed intentionally, or no backup is available. plasmavaultrc file is missing, but the data files exist: - Recreate the data that would exist in plasmavaultrc based on the names of the data files |