Skip to content

Commit

Permalink
Avoid creating a new TTY when using rootful X starting an X session
Browse files Browse the repository at this point in the history
This is problematic as even though we stay on the TTY we tell logind a
different session is in use. This leads to the session being considered
inactive which causes lots of issues.
  • Loading branch information
davidedmundson committed Aug 23, 2021
1 parent 37a39d0 commit 72e337f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/daemon/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ namespace SDDM {
m_sessionName = session.fileName();

// New VT
m_lastSession.setVt(VirtualTerminal::setUpNewVt());
if (session.xdgSessionType() != QLatin1String("x11") || m_displayServerType != X11DisplayServerType) {
m_lastSession.setVt(VirtualTerminal::setUpNewVt());
}

// some information
qDebug() << "Session" << m_sessionName << "selected, command:" << session.exec();
Expand Down

0 comments on commit 72e337f

Please sign in to comment.