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:
parent
8e11729ff6
commit
cfddaed6df
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue