Automated testing with XTEST wired to the libEI
Olivier Fourdan
ofourdan at redhat.com
Fri Mar 14 16:57:10 UTC 2025
Hi Alexander,
On Fri, Mar 14, 2025 at 4:24 PM Alexander Zvegintsev <
alexander.zvegintsev at oracle.com> wrote:
> I have a question related to XTEST wired to the libEI.
>
> There is a user confirmation for remote interaction
> <https://bugs.openjdk.org/secure/attachment/113761/confirmation.png> on
> the XTestFake* calls, but once granted it does not persist across reboots
> or may timeout after a certain period of time of inactivity.
>
> This basically blocks the automated testing on OEL 10.
>
> Is there a way to make this confirmation persistent?
>
Remote desktop has now support for persistent sessions [1] [2] , but using
it might be tricky for Xwayland for a variety of reasons.
First, it would need to be supported in liboeffis [3] as this is what
Xwayland uses, but then it would also need a way to store the token to
restore the session later, and Xwayland doesn't save any data nor has any
configuration file.
> Or is there a way to disable this connection between XTEST and libEI? (as
> a temporary solution, so that the XTestFake* calls only affect the Xwayland
> without user prompt)
>
Xwayland itself does not enable it by default and has a command line option
to explicitly enable the EI portal support (-enable-ei-portal) but with
Xwayland rootless, Xwayland is started by the Wayland compositor
automatically and GNOME Shell / mutter does not offer a way to customize
the command line so there is no way to disable it in the default Xwayland
rootless case.
GNOME Shell mutter has options to disable selected X11 extensions so it is
possible to disable XTEST support entirely, but that would break your tests
completely.
Easiest would be to add a way in mutter to optionally disable
„-enable-ei-portal“ when it starts Xwayland, but that's a bit of a hack,
not sure it would be acceptable for mutter, but we can try.
Cheers
Olivier
[1] https://github.com/flatpak/xdg-desktop-portal/issues/850
[2] https://github.com/flatpak/xdg-desktop-portal/pull/1004
[3] https://libinput.pages.freedesktop.org/libei/api/index.html#sec-oeffis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/wakefield-dev/attachments/20250314/87b8bb88/attachment-0001.htm>
More information about the wakefield-dev
mailing list