Crash without hardware-observe connected

I have an application that crashes on startup without the hardware-observe plug connected. This application uses Qt, Chromium (in the form of Qt WebEngine) and libmpv. Since hardware-observe is a plug that requires a store review request to be auto-connected, this is somewhat unexpected. I’m wondering if there’s anything I can do in the application code to avoid this crash? This is the output I get:

pcilib: Cannot open /sys/bus/pci/devices/0000:00:03.1/resource: Permission denied

I believe this access comes from Chromium (it’s definitely not from our application code so I can’t tell exactly what it’s used for). I do have the browser-support plug connected:

alsa                      plex-htpc:alsa               -                                -
audio-playback            plex-htpc:audio-playback     :audio-playback                  -
bluetooth-control         plex-htpc:bluetooth-control  -                                -
browser-support           plex-htpc:browser-support    :browser-support                 -
content[gnome-3-38-2004]  plex-htpc:gnome-3-38-2004    gnome-3-38-2004:gnome-3-38-2004  -
content[graphics-core20]  plex-htpc:graphics-core20    mesa-core20:graphics-core20      -
content[gtk-3-themes]     plex-htpc:gtk-3-themes       gtk-common-themes:gtk-3-themes   -
content[icon-themes]      plex-htpc:icon-themes        gtk-common-themes:icon-themes    -
content[sound-themes]     plex-htpc:sound-themes       gtk-common-themes:sound-themes   -
desktop                   plex-htpc:desktop            :desktop                         -
desktop-legacy            plex-htpc:desktop-legacy     :desktop-legacy                  -
gsettings                 plex-htpc:gsettings          :gsettings                       -
hardware-observe          plex-htpc:hardware-observe   -                                -
home                      plex-htpc:home-all           -                                -
network                   plex-htpc:network            :network                         -
network-bind              plex-htpc:network-bind       :network-bind                    -
opengl                    plex-htpc:opengl             :opengl                          -
pulseaudio                plex-htpc:pulseaudio         -                                -
raw-usb                   plex-htpc:raw-usb            -                                -
removable-media           plex-htpc:removable-media    -                                -
system-observe            plex-htpc:system-observe     -                                -
wayland                   plex-htpc:wayland            :wayland                         -
x11                       plex-htpc:x11                :x11                             -

If I connect hardware-observe, it doesn’t crash.

Aside from that, we can hopefully get approval for auto-connecting this plug. Can we request it for an unlisted application? (I’d like to avoid people installing it as long as it’s pending review and crashes as a result).

just move this post to the store-requests category and request it … unlisted state should not have any impact to getting hardware-observe granted …

alright. We don’t yet have the snap uploaded to the store, but I’ll open a request when I’ve sorted it out.