From cfddaed6df06998f44a140457ff72ff271e14e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 21 Aug 2015 08:47:21 +0200 Subject: [PATCH] Do not try to open VirtualTerminal through logind Logind doesn't support it and we normally can open the /dev/tty without being root. --- virtual_terminal.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/virtual_terminal.cpp b/virtual_terminal.cpp index ece59a50fa..4062831562 100644 --- a/virtual_terminal.cpp +++ b/virtual_terminal.cpp @@ -96,10 +96,6 @@ void VirtualTerminal::setup(int vtNr) } QString ttyName = QStringLiteral("/dev/tty%1").arg(vtNr); - m_vt = LogindIntegration::self()->takeDevice(ttyName.toUtf8().constData()); - if (m_vt < 0) { - qCWarning(KWIN_CORE) << "Failed to open tty through logind, trying without"; - } m_vt = open(ttyName.toUtf8().constData(), O_RDWR|O_CLOEXEC|O_NONBLOCK); if (m_vt < 0) { qCWarning(KWIN_CORE) << "Failed to open tty" << vtNr;