You are not logged in.
Hi,
I followed the wiki pages to install Arch and XBMC from scratch, but shutdown and related functions don't appear in the shutdown menu.
My xbmc user is a member of the 'power' group and the appropriate polkit rules file is in place. I also have upower and pm-utils installed.
What am I doing wrong?
Thanks in advance!
Offline
I'm just working on the same problem. I'm building my xbmc client for network booting which might make a difference but ...
I've just spotted that /etc/polkit-1/rules.d is owned by root rather than polkitd which mean the rules aren't being loaded. I'm currently searching for a reason why ...
Offline
I solved(?) the issue by editing /usr/share/polkit-1/actions/org.freedesktop.login1.policy, and allowing poweroff and reboot without limitations.
The precursor was that "systemctl poweroff" and friends weren't working either for the xbmc user, so it sent me looking for reasons why this might be. After enabling the options in the action policy config file, it works.
Offline
Changing the owner of /etc/polkit-1/rules.d works for me but it's irritating that I can't work out WHY the ownership is wrong. Still, it can go into the "if I get round to it" pile now.
Offline
Cool, I will write this down since it's a cleaner solution obviously. Perhaps this is a bug that should be reported to the packager?
Offline
I'm not convinced it is a bug in polkit. I can see in the pkgbuild where the ownership should be set on install. I can't see any reason why it shouldn't happen and it's fine on my laptop.
It's more likely I'm doing something dumb in my script to build my diskless image so, unless I get time to work out why the ownership is wrong, I'm done with this.
Offline
I can confirm that /etc/polkit-1/rules.d is owned by root for me as well...
Offline
Sussed it! Installing xbmc before polkit gives the problem, xbmc after polkit is fine.
Reported as https://bugs.archlinux.org/task/38285
Offline
Awesome! good catch!
Offline