Skip to content

SecurityError is not caught and displayed #20

@darksidelemm

Description

@darksidelemm

Issue encountered on Ubuntu 24.04 LTS, using chromium installed as a snap package.

Page loads fine, RTLSDR appears in USB device list, however when you go to start, nothing happens.
Inspection of the console showed the error: SecurityError: Failed to execute 'open' on 'USBDevice': Access denied

Things I checked:

  • kernel modules issues - all dvb related kernel modules were blacklisted
  • udev permissions - udev rules for RTLSDR were present, allowing access to users in plugdev group (which the current user was a part of)

A quick google suggested this is something to do with snap packages and their security settings. I was under time pressure to make this work, so I ended up bypassing the problem by installing google chrome from a deb package, which worked fine.

The SecurityError really should be caught, with an error message displayed. Unsure if there's a known solution for accessing USB devices from within snap packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions