PKGBUILDs/alarm/kodi-rpi-legacy/polkit.rules
graysky b1a19281dc add alarm/kodi-rpi-legacy to 18.9-1
Pi 2/3 cannot use 'leia_pi4' fork for HW decoding on certain video formats
such as HEVC it seems.  Restore a kodi package based on 'newclock5' fork which
does x264 HW decoding via mmal.

When v19 gets released, this package will stay frozen at v18 since upstream
support for it has been declared nonexistent.
2020-12-12 16:10:43 -05:00

15 lines
509 B
Text

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.udisks2.") == 0) {
return polkit.Result.YES;
}
}
});