Skip to content

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

@acuteaangle

Description

@acuteaangle

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?

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