diff options
author | Jannik Schönartz | 2021-11-24 00:21:09 +0100 |
---|---|---|
committer | Jannik Schönartz | 2021-11-24 00:21:09 +0100 |
commit | fc0fde6dfada4898bc92ea109bcf96706e69d76a (patch) | |
tree | f9e5c2ee14f1ecd05179f17a31bcb2fda5273ca0 | |
parent | If lectureID was sent, create an override config file to autostart the lecture (diff) | |
download | slxgreeter-autostart-lecture.tar.gz slxgreeter-autostart-lecture.tar.xz slxgreeter-autostart-lecture.zip |
BRANCH CAN BE DELETEDautostart-lecture
-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]); } |