mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 00:00:06 +01:00
systemd-logind.c: don't parse VT settings for non-seat0 X servers
Since non-seat0 X servers no longer touch VTs, I believe these settings
are unnecessary.
Signed-off-by: Laércio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit 718223d274)
This commit is contained in:
parent
a8b746948d
commit
b63a8cc4f2
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue