fix: clear path if invalid AppX path is used #1960
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reset path if
![Code_GLV8UpIaOJ](https://user-images.githubusercontent.com/77577746/192688108-c1646f59-925c-41fe-9c0c-902039371334.gif)
prefs_path
is of AppX and invalid (which is the majority case ifprefs_path
issue on Windows), hopefully this solves a handful of issues like this (if not all). This should also ease up the switching process from AppX to normal version after the user reads the message mentioned below:Also found out that the AppX
spotify_path
may still exist after an uninstallation, so added an extra check to be sure.Shows MS Store version warn message on backup along with the
![Code_dNty039Xrw](https://user-images.githubusercontent.com/77577746/192689283-8a9250b3-4324-416c-8696-1e01f86b44e2.png)
Spicetify not apply on restart
solution and forces the user to respond (and hopefully read) before continuing: