gui-cs / Terminal.Gui

Cross Platform Terminal UI toolkit for .NET
MIT License
9.68k stars 690 forks source link

Bug trying to select a file in CentOS stream 9 #3349

Open Blazorist opened 7 months ago

Blazorist commented 7 months ago

There is an issue when trying to select a file during setup. It is not always possible to select the file by clicking the 'Open' button. It depends on the path where the file is located.

For example, the following paths:

/home/centos/licenses --> does not work /home/centos/Downloads --> works /home/centos/Downloads/PFSlicenses --> does not work /home/centos/Downloads/licenses --> does not work /home/centos/Desktop/licenses --> works /home/centos/Desktop/licenses/PFSlicenses --> does not work

Permissions and files accessibility have been checked.

It's worth noting that the issue only occurs with the 'Open' button when clicking it or selecting it with the keyboard. If the user double-clicks the file they want to select, it works correctly and they can proceed with the setup.

To Reproduce Steps to reproduce the behavior:

  1. Open a file selector dialog
  2. Select a file
  3. Press "Open" (depends on the path it works or not)

Expected behavior Select the file when press "Open" button

Screenshots image

Desktop (please complete the following information):

tig commented 7 months ago

Thanks for the report.

Would you be able to test this using the latest v2 package to see if we fixed it there already?

Blazorist commented 7 months ago

I preferred to use the latest stable version because we are releasing, and we don't know what the impact and the breaking changes will be. Once the release is done, I will dedicate time to testing the new version. Thanks.

tig commented 7 months ago

Could you at least pull v2 down and run UICatalog on CentOS and tell us what happens?

Blazorist commented 7 months ago

Hello tig, I tested UICatalog on CentOS Stream 9, especially the file selection which was failing in the previous version. The result is that directory navigation works well, file selection also works, but when trying to make any customization to the dialogs, it breaks. As an example, I'm attaching an image showing the result of configuring the text of the "Ok" button.

Screenshot from 2024-04-02 10-39-56

I have also tested it on Alma Linux and similar issues occur.