Shutdown polkit rule
#1
Hi there.

I want to configure my XBMC to be able to shutdown the computer via remote control. Here (in German) they discribe the way with polkit. Unfortunately they still use HAL, which is obsolete for quite a good time.

So I created /etc/polkit-1/localauthority/50-local.d/xbmc_shutdown.pkla:
Code:
[Actions for xbmc user]
Identity=unix-user:xbmc
Action=org.freedesktop.devicekit.power.*;org.freedesktop.upower.*;org.freedesktop.consolekit.system.*
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes

But get as an error:
Quote:17:57:05 T:140724288997184 NOTICE: Storing total System Uptime
17:57:05 T:140724288997184 NOTICE: Saving settings
17:57:05 T:140724288997184 NOTICE: stop all
17:57:05 T:140724288997184 NOTICE: PVRManager - stopping
17:57:06 T:140724288997184 NOTICE: ES: Stopping event server
17:57:06 T:140723991078656 NOTICE: ES: UDP Event server stopped
17:57:06 T:140724288997184 NOTICE: stop dvd detect media
17:57:06 T:140724288997184 NOTICE: stop sap announcement listener
17:57:06 T:140724288997184 NOTICE: clean cached files!
17:57:06 T:140724288997184 NOTICE: unload skin
17:57:06 T:140724288997184 NOTICE: stop python
17:57:07 T:140724288997184 NOTICE: stopped
17:57:07 T:140724288997184 NOTICE: destroy
17:57:07 T:140724288997184 NOTICE: closing down remote control service
17:57:07 T:140724288997184 NOTICE: unload sections
17:57:07 T:140724288997184 ERROR: DBus: Error org.freedesktop.ConsoleKit.Manager.NotPrivileged - Authorization is required
17:57:07 T:140724288997184 NOTICE: destroy
17:57:07 T:140724288997184 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
What's the missing part?
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Shutdown polkit rule00
This forum uses Lukasz Tkacz MyBB addons.