-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pineflash doesn't find binaries (pkexec) because it overrides the PATH variable #89
Comments
I’m assuming you’re using the appimage? Interestingly, the dfu-util version of this function had this this commented out in e263b0fc8 ‘appimage improvements’. I wasn’t able to find the original reason that line was included. |
I am building the program from source as i wanted to make it run natively on my machine |
Were you able to run PineFlash without patching the binary with patchelf? In my testing for the Nixpkgs PR, patchelf was necessary to add libxkbcommon and libGL to rpath. |
I added the library paths to LD_LIBRARY_PATH using wrapProgram (link) and patched out the aforementioned line, but I'm not sure what is the better practice. Also i think you don't need the patch you added to your PR, works fine without |
The patch was necessary in my testing, as otherwise it would find the unwrapped |
Ah alright then, but what about the issue ? Would removing the line break AppImage compat ? |
The appimage compat commit was making essentially the same change as proposed here but for the dfu-util path. I don’t have a non-NixOS system currently to test if this would break anything elsewhere. |
Hardcoding the PATH makes Command unable to find the pkexec binary on NixOS:
pineflash/src/submodules/flash.rs
Line 186 in 1cbe554
Removing this line (82605e4) fixes the issue, and as the hardcoded values are already contained in PATH by default, removing it should not break anything on other distros.
Can submit a PR if wished.
The text was updated successfully, but these errors were encountered: