Skip to content
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

Adding dbus interface for loading locale keyboards #6093

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adamkankovsky
Copy link
Contributor

No description provided.

@pep8speaks
Copy link

pep8speaks commented Jan 14, 2025

Hello @adamkankovsky! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 57:1: E731 do not assign a lambda expression, use a def
Line 58:1: E731 do not assign a lambda expression, use a def

Comment last updated at 2025-01-17 12:57:20 UTC

pyanaconda/localization.py Outdated Show resolved Hide resolved
@jkonecny12
Copy link
Member

jkonecny12 commented Jan 14, 2025

Also we shouldn't forget about localization of the layouts
https://github.com/rhinstaller/anaconda/blob/main/pyanaconda%2Fui%2Fgui%2Fxkl_wrapper.py#L32-L33

We can resolve on the UI side or provide a separate API for that. Something like get_localized. Not sure what is better approach

Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this improvement! I would like to know what do you think about the notes below before setting ACK.

pyanaconda/modules/localization/localization.py Outdated Show resolved Hide resolved
pyanaconda/localization.py Outdated Show resolved Hide resolved
pyanaconda/ui/gui/xkl_wrapper.py Show resolved Hide resolved
Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I just wonder how we are going to resolve the localization? Will that be DBus API or a UI code?

@adamkankovsky
Copy link
Contributor Author

/kickstart-test --testtype smoke

@adamkankovsky
Copy link
Contributor Author

/kickstart-test --testtype smoke

Adding dbus interface for loading locale keyboards

Remove duplicate function and migrate to localization one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f42 Fedora 42
Development

Successfully merging this pull request may close these issues.

3 participants