rdev icon indicating copy to clipboard operation
rdev copied to clipboard

Please add FreeBSD support

Open yurivict opened this issue 3 years ago • 3 comments

The code is likely identical to linux.

yurivict avatar Aug 03 '22 06:08 yurivict

Hmm, what prevents from running this code ?

This crate is binding against x11 so as far as I'm aware it doesn't care about distros. Unless something is going on in libc or in the build.rs which is ruining things in FreeBSD ?

Narsil avatar Nov 11 '22 09:11 Narsil

The code like this:

#[cfg(target_os = "linux")]
use crate::linux::{display_size as _display_size, listen as _listen, simulate as _simulate};
#[cfg(target_os = "linux")]
pub use crate::linux::{simulate_char, simulate_unicode, Keyboard};

which doesn't have "freebsd" counterparts.

X11 is exactly identical in linux and *BSDs, so that the mod name should probably be called linux_or_bsd.

yurivict avatar Feb 20 '24 02:02 yurivict

https://github.com/Narsil/rdev/pull/125

yurivict avatar Feb 20 '24 04:02 yurivict