Talk:Kodi

From ArchWiki
Revision as of 03:13, 24 October 2012 by Fengchao (Talk | contribs) (policykit rules)

Jump to: navigation, search

policykit rules

Seems policykit config format is deprecated. I found following variant:

/etc/polkit-1/rules.d/50-xbmc.rules
polkit.addRule(function(action, subject) {
    if (( (action.id.indexOf("org.freedesktop.udisks.") == 0) || (action.id.indexOf("org.freedesktop.upower.")== 0) || (action.id.indexOf("org.freedesktop.consolekit.")== 0) ) &&
        subject.user=="xbmc") {
        return polkit.Result.YES;
    }
});

Somebody confirm this. Unikum (talk) 01:15, 19 October 2012 (UTC)

I tested this. Seems it work. Unikum (talk) 07:37, 20 October 2012 (UTC)
Rule updated. Close. -- Fengchao (talk) 03:13, 24 October 2012 (UTC)