Do not try to open VirtualTerminal through logind

Logind doesn't support it and we normally can open the /dev/tty without
being root.
This commit is contained in:
Martin Gräßlin 2015-08-21 08:47:21 +02:00
parent 8e11729ff6
commit cfddaed6df

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;