Skip to content

setup_rules.sh: fails if sudo is not available. #242

@Kangie

Description

@Kangie

Describe the bug
Install udev rules

To Reproduce
Steps to reproduce the behavior:

  1. Don't have sudo available
  2. Run ./qFlipper-x86_64-1.3.3.AppImage rules install (or similar...)
./qFlipper-x86_64-1.3.3.AppImage rules install
You will now be asked for SUDO password.
/tmp/.mount_qFlipp5BMzFu/AppRun: line 37: sudo: command not found
Something went wrong. Device rules may have not been installed correctly.

Expected behavior

  1. Support doas
  2. Support running with pre-elevated permissions (i.e. check if already uid 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions