Difference between revisions of "Talk:Kodi"

From ArchWiki
Jump to: navigation, search
m (policykit rules)
(policykit rules)
Line 1: Line 1:
== policykit rules ==
+
== <s> policykit rules </s> ==
  
 
Seems policykit config format is deprecated. I found following variant:
 
Seems policykit config format is deprecated. I found following variant:
Line 14: Line 14:
 
Somebody confirm this.  
 
Somebody confirm this.  
 
[[User:Unikum|Unikum]] ([[User talk:Unikum|talk]]) 01:15, 19 October 2012 (UTC)
 
[[User:Unikum|Unikum]] ([[User talk:Unikum|talk]]) 01:15, 19 October 2012 (UTC)
* I tested this. Seems it work. [[User:Unikum|Unikum]] ([[User talk:Unikum|talk]]) 07:37, 20 October 2012 (UTC)
+
: I tested this. Seems it work. [[User:Unikum|Unikum]] ([[User talk:Unikum|talk]]) 07:37, 20 October 2012 (UTC)
 +
:: Rule updated. Close. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 03:13, 24 October 2012 (UTC)

Revision as of 03:13, 24 October 2012

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)