Skip to content

NixOS broken due to hardcoded /bin/pkexec #1

@Shringe

Description

@Shringe

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions