From 718223d27452862eedcf1bee6278eae6040d45ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?La=C3=A9rcio=20de=20Sousa?= Date: Thu, 3 Dec 2015 08:05:59 -0200 Subject: [PATCH] systemd-logind.c: don't parse VT settings for non-seat0 X servers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since non-seat0 X servers no longer touch VTs, I believe these settings are unnecessary. Signed-off-by: LaƩrcio de Sousa Reviewed-by: Hans de Goede --- hw/xfree86/os-support/linux/systemd-logind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/linux/systemd-logind.c b/hw/xfree86/os-support/linux/systemd-logind.c index 2612d9e23..13784d15c 100644 --- a/hw/xfree86/os-support/linux/systemd-logind.c +++ b/hw/xfree86/os-support/linux/systemd-logind.c @@ -38,6 +38,7 @@ #include "xf86.h" #include "xf86platformBus.h" #include "xf86Xinput.h" +#include "globals.h" #include "systemd-logind.h" @@ -615,7 +616,7 @@ static struct dbus_core_hook core_hook = { int systemd_logind_init(void) { - if (linux_parse_vt_settings(TRUE) && !linux_get_keeptty()) { + if (!ServerIsNotSeat0() && linux_parse_vt_settings(TRUE) && !linux_get_keeptty()) { LogMessage(X_INFO, "systemd-logind: logind integration requires -keeptty and " "-keeptty was not provided, disabling logind integration\n");