redromnon/HeroicBashLauncher

Program Fails for Folder Names with Special Characters

Closed this issue · 7 comments

Using HeroicBashLauncher Flatpak version...

(process:22404): Gtk-WARNING **: 00:21:35.609: Locale not supported by C library.
Using the fallback 'C' locale.
3.32.0
Traceback (most recent call last):
File "HeroicBashLauncher.py", line 21, in
File "listinstalled.py", line 79, in listinstalled
File "createlaunchfile.py", line 55, in createlaunchfile
UnicodeEncodeError: 'ascii' codec can't encode character '\xae' in position 967: ordinal not in range(128)
[22403] Failed to execute script 'HeroicBashLauncher' due to unhandled exception!
Checking if Zenity is installed:

Are you using the Deck?
Is there a game or a folder (like prefix folder) that includes the ® symbol?

Yes that was it! I've uninstalled that game and installed another and everything worked great.

So did any folder names related to the game have that character? Like wine prefix name, game folder name, etc.

Because the program removes special characters for everything except names of folders related to the game since they are sensitive.

Yes it was a Indiana Jones game and it had the ® symbol in there.

Can you confirm if the game's wine prefix name contains the symbol? You can find that under the game's settings->Wine->WinePrefix Folder in the Heroic app.

20220404_140246
Yes it's in there.

I can't do anything about this, it's how Heroic assigns the names to the wine prefixes.

But what you can do is edit and delete any special characters like ® (like here in WinePrefix) and try running Bash Launcher again.