Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8023

Media centres • Re: Kodi on Raspbian Trixie

$
0
0
After some time I found a solution (truth is I found someone who found a solution):
https://forum.kodi.tv/showthread.php?tid=372513

Code:

Add in etc/polkit-1/rules.d/50-power.rulespolkit.addRule(function(action, subject) {    if ((action.id == "org.freedesktop.login1.reboot" ||         action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||         action.id == "org.freedesktop.login1.power-off" ||         action.id == "org.freedesktop.login1.power-off-multiple-sessions" ||         action.id == "org.freedesktop.login1.suspend" ||         action.id == "org.freedesktop.login1.suspend-multiple-sessions"))    {    return polkit.Result.YES;    }});
now with this file kodi is allowed to poweroff and reboot.

Statistics: Posted by Markus_0815 — Sat Oct 11, 2025 9:16 pm



Viewing all articles
Browse latest Browse all 8023

Trending Articles