I'm owner of Raspberry Pi 4 and i installed kodi-rbp4 the problem that I faced was that there is a wrong polkit for kodi-rbp4 and doesnt allow to reboot/poweroff the system from kodi.
the solution to my problem is to edit the /usr/share/polkit-1/rules.d/10-kodi.rules as follow:
$this->bbcode_second_pass_code('', 'polkit.addRule(function(action, subject) {
// if (subject.user == "kodi") {
polkit.log("action=" + action);
polkit.log("subject=" + subject);
if (action.id.indexOf("org.freedesktop.login1.") == 0) {
return polkit.Result.YES;
}
if (action.id.indexOf("org.freedesktop.udisks.") == 0) {
return polkit.Result.YES;
}
if (action.id.indexOf("org.freedesktop.upower.") == 0) {
return polkit.Result.YES;
}
// }
});')
I want to run kodi in general as simple "user" and not as "kodi" user
this way i have the power options menu and NOT just the exit command....
