diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-09-01 16:35:50 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2015-09-01 16:35:50 -0300 |
commit | 45a60a8fdfdade381c78e1791d65a389d620f2a8 (patch) | |
tree | 4376831e9a33b4694b3b761c0c467c98013e28e7 /pcr/consolekit/25-consolekit.rules | |
parent | 48c7bc490b2dc9f41478d44557dd60c6ae2d241d (diff) | |
parent | 026395c1523a751fd6b1fa5f76e234a990276b84 (diff) |
Merge branch 'master' of git://projects.parabola.nu/abslibre/abslibre
Diffstat (limited to 'pcr/consolekit/25-consolekit.rules')
-rw-r--r-- | pcr/consolekit/25-consolekit.rules | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pcr/consolekit/25-consolekit.rules b/pcr/consolekit/25-consolekit.rules new file mode 100644 index 000000000..adddfb1bd --- /dev/null +++ b/pcr/consolekit/25-consolekit.rules @@ -0,0 +1,8 @@ +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.consolekit.system.stop" || + action.id == "org.freedesktop.consolekit.system.restart" || + action.id == "org.freedesktop.consolekit.system.hibernate" || + action.id == "org.freedesktop.consolekit.system.suspend") { + return polkit.Result.YES; + } +}); |