OSDN Git Service

[add] : Shutdown without password
authorhayao <shun819.mail@gmail.com>
Sat, 22 Aug 2020 05:16:51 +0000 (14:16 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 22 Aug 2020 05:16:51 +0000 (14:16 +0900)
channels/gnome/airootfs.any/etc/polkit-1/localauthority.conf.d/org.freedesktop.logind.policy [new file with mode: 0644]

diff --git a/channels/gnome/airootfs.any/etc/polkit-1/localauthority.conf.d/org.freedesktop.logind.policy b/channels/gnome/airootfs.any/etc/polkit-1/localauthority.conf.d/org.freedesktop.logind.policy
new file mode 100644 (file)
index 0000000..2a4dc79
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "https://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+
+<policyconfig>
+
+  <action id="org.freedesktop.login1.power-off-multiple-sessions">
+    <description>Shutdown the system when multiple users are logged in</description>
+    <message>System policy prevents shutting down the system when other users are logged in</message>
+    <defaults>
+      <allow_inactive>yes</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+</policyconfig>
\ No newline at end of file