代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/lightdm 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 15722c7b2cb41dbe612d6b4c51c3dba11f5fe4c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Thu, 18 Jan 2018 17:40:50 +0100
Subject: [PATCH 1/2] configure: Add option to disable writing dmrc files
---
configure.ac | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/configure.ac b/configure.ac
index 711db441..3a20c84f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -170,8 +170,18 @@ AC_MSG_CHECKING(whether to build tests)
AC_ARG_ENABLE(tests,
AS_HELP_STRING([--disable-tests], [Disable tests building]),
[], [enable_tests="yes"])
+AC_MSG_RESULT([$enable_tests])
AM_CONDITIONAL(COMPILE_TESTS, test x"$enable_tests" != "xno")
+AC_MSG_CHECKING(whether to enable writing dmrc files)
+AC_ARG_ENABLE(dmrc,
+ AS_HELP_STRING([--disable-dmrc], [Disable writing .dmrc in user home]),
+ [], [enable_dmrc="yes"])
+AC_MSG_RESULT([$enable_dmrc])
+if test x"$enable_dmrc" != "xno"; then
+ AC_DEFINE([WRITE_DMRC], [1], [Enable writing .dmrc in user home])
+fi
+
dnl ###########################################################################
dnl Configurable values
dnl ###########################################################################
@@ -264,4 +274,5 @@ echo "
liblightdm-qt5: $compile_liblightdm_qt5
libaudit support: $use_libaudit
Enable tests: $enable_tests
+ Write .dmrc files: $enable_dmrc
"
From 1072c1b0fe917358c4bdb9ee8bb23fd3c19e349c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Thu, 18 Jan 2018 17:41:30 +0100
Subject: [PATCH 2/2] dmrc: Implement new configuration option
---
common/dmrc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/common/dmrc.c b/common/dmrc.c
index 9b92a52b..795ec2aa 100644
--- a/common/dmrc.c
+++ b/common/dmrc.c
@@ -13,6 +13,7 @@
#include <string.h>
#include <unistd.h>
+#include "config.h"
#include "dmrc.h"
#include "configuration.h"
#include "privileges.h"
@@ -54,6 +55,7 @@ dmrc_save (GKeyFile *dmrc_file, CommonUser *user)
gsize length;
g_autofree gchar *data = g_key_file_to_data (dmrc_file, &length, NULL);
+#ifdef WRITE_DMRC
/* Update the users .dmrc */
g_autofree gchar *path = g_build_filename (common_user_get_home_directory (user), ".dmrc", NULL);
@@ -65,6 +67,7 @@ dmrc_save (GKeyFile *dmrc_file, CommonUser *user)
g_file_set_contents (path, data, length, NULL);
if (drop_privileges)
privileges_reclaim ();
+#endif
/* Update the .dmrc cache */
g_autofree gchar *cache_dir = config_get_string (config_get_instance (), "LightDM", "cache-directory");
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。