libs: fallback to ConsoleKit in KDisplayManager::isSwitchable()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-04-25 07:13:18 +03:00
parent 03e29652d7
commit 8695460bb5

View file

@ -599,7 +599,9 @@ KDisplayManager::isSwitchable()
systemdversion = systemdversion.left(dotindex);
}
// always allowed since 246 and the CanMultiSession property is hidden
return (systemdversion.toLongLong() >= 246);
if (systemdversion.toLongLong() >= 246) {
return true;
}
}
CKSeat CKseat(currentSeat);
if (CKseat.isValid()) {