HeroicGamesLauncher icon indicating copy to clipboard operation
HeroicGamesLauncher copied to clipboard

Prevent users from setting invalid wine prefixes

Open arielj opened this issue 10 months ago • 0 comments

Problem description

We could have some validations for the prefix paths:

  • make sure the directories are writable
  • make sure the folder is not the game install folder
  • I'm sure there are more cases we should prevent, having the setup to validate the prefix path will allow us to improve that in the future

Feature description

When a user changes a prefix directory, don't change the setting as the user types. Wait for the input to be burred and then run some validations, and only apply if the validations is successful. If it's not, let the user know with an error message (an allow to reset the value to the stored one)

Alternatives

Not sure, I guess not doing any validation.

Additional information

No response

arielj avatar Apr 23 '24 22:04 arielj