-
Notifications
You must be signed in to change notification settings - Fork 363
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
Enhance reading of the Live keyboard layouts #6220
Enhance reading of the Live keyboard layouts #6220
Conversation
This is alternative solution to #6219 |
0420c19
to
d91a45d
Compare
/kickstart-test --testtype smoke |
@@ -0,0 +1,27 @@ | |||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just reuse, KeyboardConfigurationError from pyanaconda/modules/common/errors/configuration.py?
Seems generic enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would be the benefit? Seems to me that more verbose is better isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see your point. Errors are not split by the modules as structures etc... In that case we can avoid creating the localization
error python module.
d91a45d
to
b5132ed
Compare
b5132ed
to
c57a272
Compare
c57a272
to
a17ce6a
Compare
UPDATE:
|
a17ce6a
to
a141aaf
Compare
/kickstart-test --testtype smoke |
/packit build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works thanks.
# be used in localed | ||
if t[0] != "xkb": | ||
raise KeyboardConfigurationError( | ||
f"Live system has layout which can't be used by Anaconda - {t}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to translate this one? I show it in the Web UI as you noticed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
We don't plan to extend Live specific keyboard configuration but rather we want to onboard everyone to localed which will be one single solution.
The Live system (Gnome Shell) supports ibus input methods which are not supported by Anaconda. Anaconda can't support ibus because vconsole nor localed supports this because they need to be usable in TTY environment. Related: rhbz#2348726
This API is added so that web UI is able to read keyboard layouts without storing them to the localization module. Related: rhbz#2348726
a141aaf
to
9427fd5
Compare
/kickstart-test --waive ran already |
This PR is doing two parts:
Related: rhbz#2348726