Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: 10-enable-upower-suspend.rules
===================================================================
--- 10-enable-upower-suspend.rules	(nonexistent)
+++ 10-enable-upower-suspend.rules	(revision 231)
@@ -0,0 +1,9 @@
+polkit.addRule(
+  function(action, subject) {
+    if ( (action.id == "org.freedesktop.upower.suspend" ||
+          action.id == "org.freedesktop.upower.hibernate")
+          && subject.isInGroup("power") ) {
+      return polkit.Result.YES;
+    }
+  }
+);