Access to system directories from flatpak - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +--- Thread: Access to system directories from flatpak (/showthread.php?tid=18503) |
Access to system directories from flatpak - lagrang3 - 07-15-2023 I've started developing an app for the Pinephone, my app would be deployed with a flatpak. My application needs access to system directories to read the device camera. Doing some testing I've discovered that a native Pinephone application called megapixels doesn't launch if I package it into a flatpak. The error is related to not being able to read a system directory `/sys/firmware/devicetree/base` In order to diagnose the problem I've run a python terminal inside the container and I've verified that neither `/sys/firmware` nor `/dev/video*` are visible from within the container: Code: mobian@mobian:~$ /usr/bin/flatpak run --branch=master --arch=aarch64 --command=python3 com.lagrange.myapp they are there, just not visible from the container: Code: mobian@mobian:~$ ls /dev/video* Even though I've built the flatpak with `"finish-args": ["--filesystem=host", "--filesystem=host-os"]`. What am I missing? Any help will be much appreciated. |