I’m working on this problem and trying to solve it via my own snap package installed in devmode (not going for elegance here). I think I’m most of the way there but I’ve hit a wall. I’ve created a snap that runs
omxplayer-pi successfully, but it can’t play a video in my home dir (while running
omxplayer-pi on its own can play a video in my home dir).
The snap is one shell script so far. Here’s
#!/bin/bash while true do sleep 10 /snap/bin/omxplayer-pi --no-osd --loop /home/meonkeys/fireplace.mp4 sleep 30 done
Here’s my snapcraft.yaml file:
name: vplay version: '0.1' summary: Play a video. description: | Try really hard to play a video. grade: devel confinement: devmode base: core18 architectures: - build-on: amd64 run-on: all apps: vplay: command: bin/vplay.sh plugs: - home daemon: simple parts: vplay: plugin: dump source: .
I install it on the raspberry pi host with
sudo snap install --devmode vplay_0.1_all.snap
The only output from
have a nice day ;), which I’ve also seen running
omxplayer-pi test.mp4 on its own (directly from the command line) before I ran
snap connect omxplayer-pi:home :home.
Is there some way to “pass on” whatever permissions
omxplayer-pi has so when invoked from
vplay it’ll work the same?
Hmm, should I actually package an
omxplayer-pi pre-built binary inside my snap instead?