-
Notifications
You must be signed in to change notification settings - Fork 28
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
cosmic-settings
: failed to get keyboard layouts
after trying to add input source
#74
Comments
I was told keyboard layout settings should work, so I looked into this issue. The problem is, that the xkb-data crate used by cosmic-settings, checks a hard coded path for the base.xml that lists available keyboard layouts. The hard coded path is A very hacky workaround to fix this would be the following:
After running this the input source options work for me, but don't use this as a permanent solution. I prepared a patch for xkb-data to make the base.xml path configurable via an environment variable. man0lis/xkb-data@47c87c4 If there are no objections, I will open a pull request. EDIT: EDIT2:
EDIT3: |
I was wondering whether it was a hard coded path somewhere. Thanks a lot for looking into this and for the patch, @man0lis! Meanwhile, something like this also works:
|
This issue also affects cosmic-greeter. |
anyone figured out how to set a keyboard shortcut to switch input sources? |
pop-os/xkb-data#3 got merged and version 0.2.1 of xkb-data with the patch was released. We can now add a wrapper for the affected binaries which correctly sets |
@onsails, If you edit
The key lines here are layout (put codes for your layouts of choice), and "grp" in options. My example is for Alt+Shift key combination, there is also an option for Win+Space, |
The problem is now fixed for cosmic-settings. cosmic-greeter, cosmic-applet-input-sources and cosmic-applet-tiling still use version 0.1 of xkb-data and should start working as soon as upstream bumps them to 0.2.1 or higher. |
Closes: pop-os#725 The inputs applet uses an outdated `xkb-data` which causes some configs to fail which in turn leads to an empty list. See: lilyinstarlight/nixos-cosmic#74 (comment)
Closes: #1160 See these for more info: * pop-os/cosmic-applets#725 * lilyinstarlight/nixos-cosmic#484 * lilyinstarlight/nixos-cosmic#74 Also, thanks to @Thatoo for all of the help in figuring this out!
I opened two small PRs to fix this on COSMIC's side: |
In cosmic-settings, clicking on
Add input source
in theInput Devices
section yields the following error:I presume that this is not expected, since support for keyboard layout configuration seems to have been implemented, but I may be wrong.
Thanks!
The text was updated successfully, but these errors were encountered: