Apologies in advance for a noob-ish question, but I am new to flatpak and having trouble.
Long time user of Kodi media player here, which I run on an Ubuntu 24.04.2 LTS server. It’s a standalone setup, with no keyboard, mouse, and no windowing system. Kodi switched from PPA to flatpak and a number of ppl (including me) have had problems upgrading.
It’s starting to feel too arcane, too fragile, and I’m seriously wondering if I should continue or just give up on flatpak and take a different approach.
I’ve gotten the flatpak installed and Kodi will launch, but some things aren’t working and I guess I’m not setting up the sandboxing correctly. I’ve done sudo flatpak update
and flatpak update tv.kodi.Kodi
. “Nothing to do.”
Some Kodi users suggest that my /etc/systemd/system/kodi.service
file should look like this:
[Unit]
Description = Kodi Media CenterAfter = systemd-user-sessions.service network.target sound.target network-online.target
[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/flatpak run --filesystem=/run/udev:ro --filesystem=home:ro tv.kodi.Kodi --standalone --windowing=gbm
ExecStop = /usr/bin/flatpak kill tv.kodi.Kodi
Restart = always
RestartSec = 5[Install]
WantedBy = multi-user.target
I’ve tried this but there are still issues. It seems Kodi wants access to /usr
and all the music and movie files are in /media
, and so I had to issue an override, but I’m guessing probably I should do everything in the ExecStart
line.
Basically, I don’t understand the --filesystem
directives (i.e., why do I need /run/udev
? Why home:ro
and not /home:rw
? How are /usr
and /media
accessed?), or what I should put here to make Kodi work as expected.
I have looked at the Flatpak documentation, in particular Sandbox Permissions, and maybe(?) host
is what I want but there are no examples to illustrate its usage and the whole discussion is pretty much above my pay grade.
How should I proceed?