Do not try to open VirtualTerminal through logind

Logind doesn't support it and we normally can open the /dev/tty without
being root.
icc-effect-5.14.5
Martin Gräßlin 2015-08-21 08:47:21 +02:00
parent 8e11729ff6
commit cfddaed6df
1 changed files with 0 additions and 4 deletions

View File

@ -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;