JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.15k stars 494 forks source link

Game install path with brackets not launching when using global scripts #3676

Closed codecrafting-io closed 8 months ago

codecrafting-io commented 8 months ago

Bug Description

If the game installation path has brackets in it, Global Scripts fails to launch the game when using any script that uses a path. This is very strange. For example, this Start-Process "C:\Windows\sysnative\ie4uinit.exe" -ArgumentList "-show" global script runs, but generates a "Global Script execution failed" only if the game's installation path has parentheses, which seems unrelated. Remove the brackets from the installation path, no errors occur.

To Reproduce

Diagnostics ID

cfccf7cc-3aaf-414d-9589-21ccc2ab2f99

Screenshots

image

JosefNemec commented 8 months ago

Known issue with current scripting runtime we are using, see: https://api.playnite.link/docs/manual/features/scriptingSupport/helpAndTroubleshooting.html#exceptions-related-to-directory-not-being-found

Can't do anything about it from our side until P11 which will have different runtime.

JosefNemec commented 8 months ago

Use workaround mentioned in the link I posted.