FS#35729 - [xbmc] polkit rule mentioned in the wiki page should be added in the package
Attached to Project:
Community Packages
Opened by Paolo (palmaway) - Sunday, 09 June 2013, 03:30 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 28 November 2013, 09:53 GMT
Opened by Paolo (palmaway) - Sunday, 09 June 2013, 03:30 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 28 November 2013, 09:53 GMT
|
Details
If XBMC is started through the systemd service, the
shutdown/reboot/suspend... options are not available
anymore. As mentioned in the Arch wiki page for XBMC, this
can be solved by installing upower, udisks and polkit and
adding the follwing rule:
/etc/polkit-1/rules.d/10-xbmc.rules ----------------------------- polkit.addRule(function(action, subject) { if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("power")) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks") == 0 && subject.isInGroup("storage")) { return polkit.Result.YES; } }); ----------------------------- Could you please add this to the package? The "xbmc" user created by the package should probably also be added to the upower, udisks groups during creation. P.S. In version 12.2-4 the rule is still not present, but apparently some user on the wiki page though it was already (see history of the page). |
This task depends upon
What about the polkit rule? It should be a quite simple modification to the package, is there any particular reason it has not been integrated yet?
@John: by reasons I meant technical reasons: problems the mentioned polkit rule could arise with other packages, for instance, or a decision to put rules in the polkit package only, as suggested by Denis. I'm sorry, but saying that people are busy with their lives adds nothing useful to the discussion here. Actually, it could be said in just every bug report. And since you are not the mantainer of the package, I assume yours is just a speculation. Please, if you have anything related to the polkit rule or the bug to say do so, but really, saying "there's a patch so there's no point in applying it", or "this is minor" (which is not for everyone that has XBMC on headless devices) or "people are busy" (which are your reasons, if I am not mistaken) is quite pointless, in my opinion. But this is really getting off topic.