This crate fails on NixOS due to the error below. I believe this is due to this crate hardcoding the pkexec path as /bin/pkexec. NixOS uses the path /run/wrappers/bin/pkexec instead.
I'm not sure how other apps handle this, but all other apps on my system can find pkexec on NixOS without issue. A hacky solution would be check /bin/pkexec first, and then use /run/wrappers/bin/pkexec as a fallback.
Here is the error code when using the crate:
called `Result::unwrap()` on an `Err` value: No such file or directory (os error 2)
This crate fails on NixOS due to the error below. I believe this is due to this crate hardcoding the pkexec path as
/bin/pkexec. NixOS uses the path/run/wrappers/bin/pkexecinstead.I'm not sure how other apps handle this, but all other apps on my system can find
pkexecon NixOS without issue. A hacky solution would be check/bin/pkexecfirst, and then use/run/wrappers/bin/pkexecas a fallback.Here is the error code when using the crate: