From: Anthony PERARD <anthony.perard@citrix.com>
To: Laurent Vivier <laurent@vivier.eu>
Cc: Alex Williamson <alex.williamson@redhat.com>,
"Daniel P . Berrange" <berrange@redhat.com>,
qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3] ui: add an embedded Barrier client
Date: Mon, 23 Sep 2019 17:07:51 +0100 [thread overview]
Message-ID: <20190923160751.GA212017@perard.uk.xensource.com> (raw)
In-Reply-To: <20190906083812.29487-1-laurent@vivier.eu>
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?
Thanks.
> + }
> +}
> +
> +static const TypeInfo input_barrier_info = {
> + .name = TYPE_INPUT_BARRIER,
> + .parent = TYPE_OBJECT,
> + .class_size = sizeof(InputBarrierClass),
> + .class_init = input_barrier_class_init,
> + .instance_size = sizeof(InputBarrier),
> + .instance_init = input_barrier_instance_init,
> + .instance_finalize = input_barrier_instance_finalize,
> + .interfaces = (InterfaceInfo[]) {
> + { TYPE_USER_CREATABLE },
> + { }
> + }
> +};
> +
> +static void register_types(void)
> +{
> + type_register_static(&input_barrier_info);
> +}
> +
> +type_init(register_types);
--
Anthony PERARD
next prev parent reply other threads:[~2019-09-23 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 8:38 [Qemu-devel] [PATCH v3] ui: add an embedded Barrier client Laurent Vivier
2019-09-16 12:14 ` Laurent Vivier
2019-09-17 11:44 ` Gerd Hoffmann
2019-09-23 16:07 ` Anthony PERARD [this message]
2019-09-23 18:51 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190923160751.GA212017@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=alex.williamson@redhat.com \
--cc=berrange@redhat.com \
--cc=kraxel@redhat.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).