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

Allow compiling without clipboard support #157

Closed
karx1 opened this issue May 6, 2022 · 3 comments
Closed

Allow compiling without clipboard support #157

karx1 opened this issue May 6, 2022 · 3 comments

Comments

@karx1
Copy link

karx1 commented May 6, 2022

Hi, first of all I just wanted to say that this is a great project, and I use it almost daily.

This project won't compile on systems without a graphical display, such as Termux on Android and also servers which don't have X11 installed. It would be great if you could add a feature flag to disable the clipboard support so I can compile and use this tool on those systems. I don't want to just use the python version.

Thanks in advance,
karx

@piegamesde
Copy link
Member

Yes, this should be doable. However, I shall note that the dependency is on libxcb only and not on X11 itself. This is a key difference, since the former is a rather small package that shouldn't hurt too much in a headless installation.

I've already had this topic come up with a packager, and the optimal solution would be to have libxcb as an optional, run-time dependency. But I don't really know how to do this in Rust, so a feature flag might be the best available option.

@pepa65
Copy link

pepa65 commented Oct 17, 2023

This would be a great feature to have, to compile without needing libxcb and not having automatic clipboard usage, usable on headless machines.

@felinira
Copy link
Collaborator

This is implemented in #259

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

4 participants