Describe the bug
When installing an application that contains a special character "®" the corresponding bottle can't be opened anymore and the following message is shown on the console.
Traceback (most recent call last):
File "/app/share/bottles/bottles/views/list.py", line 149, in show_details
self.window.show_details_view(config=self.config)
File "/app/share/bottles/bottles/window.py", line 291, in show_details_view
self.page_details.set_config(config)
File "/app/share/bottles/bottles/views/details.py", line 176, in set_config
self.view_programs.update(config=config)
File "/app/share/bottles/bottles/views/bottle_programs.py", line 120, in update
programs = self.manager.get_programs(self.config)
File "/app/share/bottles/bottles/backend/managers/manager.py", line 633, in get_programs
executable_path = self.__getLnkData(program)
File "/app/share/bottles/bottles/backend/managers/manager.py", line 542, in __getLnkData
return content[-1].decode(decode)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae in position 23: invalid start byte
The issue seems to be caused by a .lnk file in drive_c/ProgramData/Microsoft/Windows/Start Menu/Programs.
Click on 'Run .exe/.msi in this bottle' and select the tiptoi_Manager_Installer.exe and complete the installation process
2a. Alternative to the full installation it is enough to copy the .lnk file from tiptoi® Manager.lnk.zip to drive_c/ProgramData/Microsoft/Windows/Start Menu/Programsin a bottle.
Click on the bottle to open it
Nothing happens and the above mentioned error occures in the console where bottles was launched
Expected behavior
The bottle keeps working as it did before the installation.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: NixOS
Version 22.05
Display server: Xorg
Additional context
The issue occures in both flatpak and nixos native installation.
Describe the bug When installing an application that contains a special character "®" the corresponding bottle can't be opened anymore and the following message is shown on the console.
The issue seems to be caused by a
.lnk
file indrive_c/ProgramData/Microsoft/Windows/Start Menu/Programs
.Looking at https://github.com/bottlesdevs/Bottles/blob/master/src/backend/managers/manager.py#L546 the file seems to be decoded as
utf-8
, which produces garbage. UsingWindows-1252
properly decodes the content. See tiptoi® Manager.lnk.zip for the exact content of the .lnk file.Installation
To Reproduce Steps to reproduce the behavior:
drive_c/ProgramData/Microsoft/Windows/Start Menu/Programs
in a bottle.Expected behavior The bottle keeps working as it did before the installation.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):