Solved kodi-standalone from systemd doesn't allow reboot or shutdown
#1
I am using the kodi-rbp package on Arch ARM. Recently, the shutdown and restart options from the Kodi GUI have disappeared. The only option available is exit. The distro relies on starting kodi-standalone from a systemd service shown below. Can anyone think of a reason why the kodi user would lose access to shutting down the system?

Code:
$ id kodi
uid=997(kodi) gid=997(kodi) groups=997(kodi),6(disk),90(network),91(video),92(audio),93(optical),95(storage),98(power)

Code:
[Unit]
Description = Starts an instance of Kodi
After = remote-fs.target

[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/kodi-standalone -l /run/lirc/lircd
Restart = on-failure

[Install]
WantedBy = multi-user.target
Need help programming a Streamzap remote?
Reply
#2
missing polkit permissions on logind.

see the polkit file in http://forum.kodi.tv/showthread.php?tid=165707
Reply
#3
Thank you, I will investigate further. Note that Arch ARM does ship a polkit rule set (linked here).
Need help programming a Streamzap remote?
Reply
#4
Yes, you have hit the nail on the head! Arch ARM is not installing polkit nor are they installing the rules to the correct location.

Code:
...
install -Dm0644 $srcdir/kodi.service $pkgdir/usr/lib/systemd/system/kodi.service
  install -Dm0644 $srcdir/polkit.rules $pkgdir/usr/share/polkit-1/rules.d/10-kodi.rules
  chmod 0700 $pkgdir/usr/share/polkit-1/rules.d/

I created a PR to fix it based on your observation: https://github.com/archlinuxarm/PKGBUILDs/pull/1142
Need help programming a Streamzap remote?
Reply

Logout Mark Read Team Forum Stats Members Help
kodi-standalone from systemd doesn't allow reboot or shutdown1