From 235815e2e35bf56caea2f9659fd095a92a6a6ae3 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 9 May 2014 18:38:32 -0300 Subject: xbmc-libre-lts: add new package to [libre] --- libre/xbmc-libre-lts/polkit.rules | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libre/xbmc-libre-lts/polkit.rules (limited to 'libre/xbmc-libre-lts/polkit.rules') diff --git a/libre/xbmc-libre-lts/polkit.rules b/libre/xbmc-libre-lts/polkit.rules new file mode 100644 index 000000000..4b6d0fda0 --- /dev/null +++ b/libre/xbmc-libre-lts/polkit.rules @@ -0,0 +1,12 @@ +polkit.addRule(function(action, subject) { + if (subject.user == "xbmc") { + 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; + } + } +}); -- cgit v1.2.3