os_info icon indicating copy to clipboard operation
os_info copied to clipboard

Try to use uname from nix or libc crates

Open stanislav-tkach opened this issue 1 year ago • 2 comments

Perhaps it would be better to use a function from one of these crates instead of invoking the uname process.

stanislav-tkach avatar Mar 16 '24 21:03 stanislav-tkach

Sadly I learned that uname -o doesn't have a (portable?) programmatic API. Other uses of uname can probably be replaced though.

sunshowers avatar Mar 16 '24 21:03 sunshowers

I did find https://docs.rs/platform-info/latest/platform_info/, which hardcodes the OS: https://docs.rs/platform-info/latest/src/platform_info/lib_impl.rs.html

sunshowers avatar Mar 16 '24 21:03 sunshowers