[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3] ui: add an embedded Barrier client
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH v3] ui: add an embedded Barrier client |
Date: |
Mon, 23 Sep 2019 20:51:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 |
Le 23/09/2019 à 18:07, Anthony PERARD a écrit :
> Hi,
>
> Once this patch is applied, if we try to start QEMU with "-k en-us",
> qemu print a message and exit:
> qemu-system-i386: could not read keymap file: 'en-us'
>
> See below,
>
> On Fri, Sep 06, 2019 at 10:38:12AM +0200, Laurent Vivier wrote:
>> diff --git a/ui/input-barrier.c b/ui/input-barrier.c
>> new file mode 100644
>> index 000000000000..a2c961f285a4
>> --- /dev/null
>> +++ b/ui/input-barrier.c
>> +static void input_barrier_class_init(ObjectClass *oc, void *data)
>> +{
>> + UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc);
>> +
>> + ucc->complete = input_barrier_complete;
>> +
>> + /* always use generic keymaps */
>> + if (keyboard_layout) {
>> + /* We use X11 key id, so use VNC name2keysym */
>> + kbd_layout = init_keyboard_layout(name2keysym, keyboard_layout,
>> + &error_fatal);
>
> I think it's because this function is called way to early, before
> qemu_add_data_dir() is called, and so qemu_find_file() fails.
>
> Can you fix it?
I'm going to have a look.
Thanks,
Laurent