68 lines
2.2 KiB
Diff
68 lines
2.2 KiB
Diff
From b4b0b5f5a39dd66b7d752af4177119c43f316f3a Mon Sep 17 00:00:00 2001
|
|
From: songchuanfei <songchuanfei@kylinos.com.cn>
|
|
Date: Thu, 27 Aug 2020 16:48:59 +0800
|
|
Subject: [PATCH] feature[lockdown,settings]: Add lockdown settings for reboot
|
|
and suspend
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 为系统重启和系统挂起添加可禁用的配置
|
|
Resolves #29094
|
|
|
|
Signed-off-by: songchuanfei <songchuanfei@kylinos.com.cn>
|
|
---
|
|
po/zh_CN.po | 14 ++++++++++++++
|
|
schemas/org.mate.lockdown.gschema.xml.in | 10 ++++++++++
|
|
2 files changed, 24 insertions(+)
|
|
|
|
diff --git a/po/zh_CN.po b/po/zh_CN.po
|
|
index 99225a9..a8e4cf0 100644
|
|
--- a/po/zh_CN.po
|
|
+++ b/po/zh_CN.po
|
|
@@ -1228,6 +1228,20 @@ msgid ""
|
|
"active."
|
|
msgstr "阻止用户在自己的会话活动时切换到另一个账户。"
|
|
|
|
+msgid "Disable reboot"
|
|
+msgstr "禁止重启系统"
|
|
+
|
|
+msgid ""
|
|
+"Prevent the user from reboot the system."
|
|
+msgstr "阻止用户重启系统"
|
|
+
|
|
+msgid "Disable power suspend"
|
|
+msgstr "禁用系统休眠"
|
|
+
|
|
+msgid ""
|
|
+"Prevent the user from suspend the system."
|
|
+msgstr "阻止用户挂起系统或将系统休眠"
|
|
+
|
|
#: ../schemas/org.mate.lockdown.gschema.xml.in.h:11
|
|
msgid "Disable lock screen"
|
|
msgstr "禁用锁屏"
|
|
diff --git a/schemas/org.mate.lockdown.gschema.xml.in b/schemas/org.mate.lockdown.gschema.xml.in
|
|
index 1517bd1..2f5b7c5 100644
|
|
--- a/schemas/org.mate.lockdown.gschema.xml.in
|
|
+++ b/schemas/org.mate.lockdown.gschema.xml.in
|
|
@@ -30,6 +30,16 @@
|
|
<summary>Disable lock screen</summary>
|
|
<description>Prevent the user from locking the screen.</description>
|
|
</key>
|
|
+ <key name="disable-reboot" type="b">
|
|
+ <default>false</default>
|
|
+ <summary>Disable reboot</summary>
|
|
+ <description>Prevent the user from reboot the system.</description>
|
|
+ </key>
|
|
+ <key name="disable-suspend" type="b">
|
|
+ <default>false</default>
|
|
+ <summary>Disable power suspend</summary>
|
|
+ <description>Prevent the user from suspend the system.</description>
|
|
+ </key>
|
|
<key name="disable-application-handlers" type="b">
|
|
<default>false</default>
|
|
<summary>Disable URL and MIME type handlers</summary>
|
|
--
|
|
2.18.1
|
|
|