Skip to content
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

(linux) PineFlash panics without a friendly message if pkexec cannot be found #84

Open
acuteaangle opened this issue Dec 30, 2024 · 0 comments

Comments

@acuteaangle
Copy link
Contributor

acuteaangle commented Dec 30, 2024

If pkexec is missing or cannot be found, PineFlash will panic with the following user-unfriendly error when it tries to prompt for superuser privileges:

thread 'main' panicked at src/submodules/flash.rs:196:18:
Could not flash soldering iron: Os { code: 2, kind: NotFound, message: "No such file or directory" }

Expected: PineFlash would display a message that helps identify the more specific cause of the error:

Fatal: could not run pkexec; encountered "No such file or directory" while attempting to execute pkexec dfu-util -D /tmp/v2.22-Pinecilv2 -a 0; Is polkit installed?

@acuteaangle acuteaangle changed the title PineFlash panics without a friendly message if pkexec cannot be found (linux) PineFlash panics without a friendly message if pkexec cannot be found Dec 30, 2024
nydragon added a commit to nydragon/pineflash that referenced this issue Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant