Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use libei #12

Open
pentamassiv opened this issue Dec 20, 2024 · 1 comment
Open

Unable to use libei #12

pentamassiv opened this issue Dec 20, 2024 · 1 comment

Comments

@pentamassiv
Copy link

Hi,

I am the maintainer of a library to simulate input (something similar to xdotools). My library is cross-platform though and not limited to X11 or even Linux. I would like to run tests in the CI. I have some for X11, but not for Wayland yet. On Wayland and GNOME, libei must be used. Unfortunately I wasn't able to get this working in the container. Does it require setup?

The error I see is:

[2024-12-20T03:43:24Z DEBUG enigo::platform::libei] using libei
[2024-12-20T03:43:24Z DEBUG enigo::platform::libei] Unable to find ei socket. Trying xdg desktop portal.
thread 'integration_browser_events' panicked at src/linux/libei.rs:104:61:
called `Result::unwrap()` on an `Err` value: PortalNotFound(OwnedInterfaceName("org.freedesktop.portal.RemoteDesktop"))

Looks like it's some error regarding portals. I tried a number of things but haven't been successful. Here is the branch I used attempting to get this working. It is very unorganized and doesn't have any sensible commit messages as I was just trying to get this to work somehow though.

If we get this working, you could test your extensions with mouse and keyboard interaction on Wayland too. :-)

@Schneegans
Copy link
Owner

Hi there! libei is a really cool project! I looked into it several times as it would be very helpful for Kando.

However, I am not sure if this will work with this container. The wayland variant still runs as a nested session in xvfb. So all input will need to pass through X11 first. In fact, one can use xdotool in the wayland session this way. Of course it would be cool to have a headless wayland session somehow, but I am not sure how this could be achieved...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants