-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: handle unzip errors #249
base: main
Are you sure you want to change the base?
Conversation
As it stands, I'm not sure I'd agree that this fixes those issues, but were you to add something like "this may happens due to file permissions" or similar, it'd be a different story. But even so, those issues should be caught much earlier than the unzipping process imo |
sure, but this should be done regardless. |
Totally agree
Also agree, however keep in mind, there was already some attempt to make this be a thing, and it did work in my testing on Linux, as mentioned in those issues, I've however not been able to get around to if it's just on Windows it breaks, and why... |
Oh yeah thats kinda expected. what could be added after the accessSync is an attempt to create a file and delete it. |
I figured Windows did some dumb stuff underneath or handled something different oh well, any fix is appreciated really... Whether it's recursively checking the files inside, or creating a file etc |
the last thing I want to propose here is making Currently it creates an alert box and opens the setpath dialog on loop until you select a path with permissions or until the user terminates the app because |
The original intention was that the dialog would show, and it'd disable the buttons beside the gamepath related ones, letting you mount the drive or fix permissions etc without having to set the gamepath again. Just to clarify, are you saying the permission alert continuously show keeps popping up? Because that would be unintentional |
yes, that is what is happening. The loop goes like this: |
I see, I suppose you could do: ipcMain.on("gamepath-lost-perms", async (e, selected_gamepath) => {
if (! gamepath.setting && ! gamepath.lost_perms == selected_gamepath) {
gamepath.lost_perms = selected_gamepath;
// remaining code ...
}
}) And then clear |
2a13036
to
97ce139
Compare
a75ab00
to
7f90d57
Compare
Anything still needed for this to be merged?
|
Besides localization, this should be able to be merged. |
reverted unneeded localization changes, added german translation. |
was asked to ping here so they are aware when they are back @Alystrasz |
Co-authored-by: Rémy Raes <[email protected]>
fixes #238
fixes #240
handles unzip failures gracefully with visual feedback in the UI