Index: logind.h =================================================================== --- logind.h +++ logind.h @@ -56,6 +56,10 @@ int takeDevice(const char *path); void releaseDevice(int fd); + const QString seat() const { + return m_seatName; + } + Q_SIGNALS: void connectedChanged(); void hasSessionControlChanged(bool); @@ -91,6 +95,7 @@ bool m_sessionControl; bool m_sessionActive; int m_vt = -1; + QString m_seatName = QStringLiteral("seat0"); QString m_seatPath; QString m_sessionControllerName; QString m_sessionControllerService; Index: logind.cpp =================================================================== --- logind.cpp +++ logind.cpp @@ -438,6 +438,9 @@ if (m_seatPath != seatPath) { m_seatPath = seatPath; } + if (m_seatName != seat.name) { + m_seatName = seat.name; + } } ); }