diff options
-rw-r--r-- | src/loginrpc.cpp | 20 |
1 files changed, 1 insertions, 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]); } |