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

Use X11 protocol directly via libxcb, instead of xhost command #163

Merged
merged 11 commits into from
Jun 3, 2024

Conversation

intgr
Copy link
Owner

@intgr intgr commented Jun 2, 2024

XCB seems to solve all the issues that the initial attempt with libX11 had (#89 (comment))

Closes #89

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@intgr
Copy link
Owner Author

intgr commented Jun 3, 2024

Maybe consider the xcb-dl crate instead, which lazily loads libxcb library only if needed?

https://docs.rs/xcb-dl/latest/xcb_dl/struct.Xcb.html#method.xcb_change_hosts

@intgr intgr marked this pull request as ready for review June 3, 2024 17:18
@intgr
Copy link
Owner Author

intgr commented Jun 3, 2024

Maybe consider the xcb-dl crate instead, which lazily loads libxcb library only if needed?

Nah, it seems more complicated. Real desktop systems almost certainly still have X11 and libxcb installed.

@intgr
Copy link
Owner Author

intgr commented Jun 3, 2024

Possibly one day, rust-xcb upstream will implement this as well:

@intgr intgr changed the title Use XCB library instead of executing xhost command Use X11 protocol directly via libxcb, instead of xhost command Jun 3, 2024
@intgr intgr merged commit 89c24ba into master Jun 3, 2024
1 check passed
@intgr intgr deleted the xcb-instead-of-xhost branch June 3, 2024 17:56
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

Successfully merging this pull request may close these issues.

1 participant