Skip to content

fix(xfreerdp): try /list:kbd also with dash syntax #1373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yedayak
Copy link
Collaborator

@yedayak yedayak commented Apr 24, 2025

This caused failures on recent fedoradev rawhide tests, since it seems to not be built with deprecated options like --list-kbd anymore.

This introduces an internal utility function to list kbd layouts, which is used in two places.

I'm not sure about how the usage of the function, I couldn't find other utility functions that don't just complete something right away, but I didn't look very thoroughly. Maybe returning the data through a variable like REPLY makes more sense?

This caused failures on recent fedoradev rawhide tests, since it seems
to not be built with deprecated options like `--list-kbd` anymore.

This introduces an internal utility function to list kbd layouts, which
is used in two places.
Comment on lines +8 to +9
kbd_list=$("$1" --kbd-list 2>/dev/null) ||
kbd_list=$("$1" /kbd-list 2>/dev/null)
Copy link
Collaborator

@akinomyoga akinomyoga Apr 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with xfreerdp, but according to this page, the Windows style /kbd-list seems to be preferred to the POSIX-style --kbd-list. Also, --kbd-list seems to be a synonym of /kbd-list.

Do you think we can only test /kbd-list and drop the test for --kbd-list? Conversely, if we are going to test both the styles, I think we should also check --list:kbd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants