Changeset View
Changeset View
Standalone View
Standalone View
src/backends/lua/luasession.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
52 | m_process->setProgram(QLatin1String("/usr/bin/lua")); | 52 | m_process->setProgram(QLatin1String("/usr/bin/lua")); | ||
53 | m_process->setArguments(QStringList() << QLatin1String("-i")); | 53 | m_process->setArguments(QStringList() << QLatin1String("-i")); | ||
54 | 54 | | |||
55 | m_process->setProcessChannelMode(QProcess::SeparateChannels); | 55 | m_process->setProcessChannelMode(QProcess::SeparateChannels); | ||
56 | 56 | | |||
57 | connect(m_process, SIGNAL(readyReadStandardOutput()), this, SLOT(readIntroMessage())); | 57 | connect(m_process, SIGNAL(readyReadStandardOutput()), this, SLOT(readIntroMessage())); | ||
58 | connect(m_process, SIGNAL(started()), this, SLOT(processStarted())); | 58 | connect(m_process, SIGNAL(started()), this, SLOT(processStarted())); | ||
59 | m_process->start(); | 59 | m_process->start(); | ||
60 | m_process->waitForStarted(); | ||||
61 | m_process->waitForReadyRead(); | ||||
60 | 62 | | |||
61 | // we need this for tab completion | 63 | // we need this for tab completion | ||
62 | m_L = luaL_newstate(); | 64 | m_L = luaL_newstate(); | ||
63 | luaL_openlibs(m_L); | 65 | luaL_openlibs(m_L); | ||
64 | 66 | | |||
65 | changeStatus(Cantor::Session::Done); | 67 | changeStatus(Cantor::Session::Done); | ||
66 | emit loginDone(); | 68 | emit loginDone(); | ||
67 | } | 69 | } | ||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |