From fc0fde6dfada4898bc92ea109bcf96706e69d76a Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 24 Nov 2021 00:21:09 +0100 Subject: BRANCH CAN BE DELETED --- src/loginrpc.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/loginrpc.cpp b/src/loginrpc.cpp index 320cdfd..b8edb16 100644 --- a/src/loginrpc.cpp +++ b/src/loginrpc.cpp @@ -46,7 +46,7 @@ void LoginRpc::handleIncoming(QTcpSocket *sock) { void LoginRpc::handleCommandV1(const QString &command) { QStringList lines = command.split('\n'); - while (lines.count() < 4) { + while (lines.count() < 3) { lines.append(QString()); } QString res = lines[2]; @@ -134,23 +134,5 @@ void LoginRpc::handleCommandV1(const QString &command) } } } - - // If lectureId was sent, create a file that overrides the SLX_AUTOSTART_UUID - if (lines[3] != "") { - // File will be created at /var/lib/lightdm/config_overrides/SLX_AUTOSTART_UUID - QString path = "config_override/"; - QFile file(path + "SLX_AUTOSTART_UUID"); - - QDir dir; - if (!dir.exists(path)) { - dir.mkdir(path); - } - if (file.open(QIODevice::ReadWrite)) { - QTextStream stream(&file); - stream << lines[3] << "\n"; - file.close(); - } - } - emit loginRequest(lines[0], lines[1], lines[2]); } -- cgit v1.2.3-55-g7522