-
Notifications
You must be signed in to change notification settings - Fork 119
Broken on "obscure" platforms (such as NixOS) #77
Comments
Thanks for pointing this out. How would you go about getting the location from the environment? Using |
|
Please try out this commit (not yet published to npm): 0e933b7 Let me know if that fixes it. |
It looks like it's somewhat fixed, but I get "Error: User did not grant permission." without any prompt. |
It looks like NixOS does things differently with pkexec then, even once we've located the unusual bin path. I am sorry I don't have NixOS available to test. I'm going to revert the |
There is a new PR at #123 -- it would be great if you could take a look! |
sudo-prompt/index.js
Line 125 in 52f82d0
This assumes you know the exact location of the pkexec/kdesudo binary. This isn't always the case, for example on my (NixOS) system:
Would it be possible to use the environment to get the location of these executables?
The text was updated successfully, but these errors were encountered: