On Tue, Sep 24, 2019 at 12:06:58AM +0200, Laurent Vivier wrote: > If we try to start QEMU with "-k en-us", qemu prints a message and exits > with: > > qemu-system-i386: could not read keymap file: 'en-us' > > It's because this function is called way too early, before > qemu_add_data_dir() is called, and so qemu_find_file() fails. > > To fix that, move init_keyboard_layout() from the class init function to the > instance init function. > > Reported-by: Anthony PERARD <anthony.per...@citrix.com> > Fixes: 6105683da35b ("ui: add an embedded Barrier client") > Signed-off-by: Laurent Vivier <laur...@vivier.eu>
Thanks! With the patch apply, I can start QEMU (with -k). And the patch looks fine. Reviewed-by: Anthony PERARD <anthony.per...@citrix.com> -- Anthony PERARD