Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4710

C/C++ • Retrieving keyboard model/layouts/variants

$
0
0
I would like to improve Raspberry Pi OS support in a software I am contributing to, but I can't find the information I need. Precisely, I need to read the keyboard model/layouts/variants (I need to get all the layouts configured by the user, I don't need the current one) which were set using the preferences applet.

Linking against any library is, unfortunately, out of question (I want one binary working across various distros) - the only acceptable solutions are reading a text file or parsing a command output.

I have tried to read it from the wayfire.ini file - but it doesn't fully work; it fetches the keyboard layout configured using raspi-config tool, but not the one set using the GUI. The

Code:

gsettings get org.gnome.desktop.input-sources sources
(standard way for GNOME) does not seem to return anything useful either.

Statistics: Posted by FeralChild — Fri Sep 27, 2024 7:33 pm — Replies 0 — Views 23



Viewing all articles
Browse latest Browse all 4710

Trending Articles