Changeset View
Changeset View
Standalone View
Standalone View
src/backends/sage/sagesession.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Line(s) | |||||
113 | void SageSession::login() | 113 | void SageSession::login() | ||
114 | { | 114 | { | ||
115 | qDebug()<<"login"; | 115 | qDebug()<<"login"; | ||
116 | emit loginStarted(); | 116 | emit loginStarted(); | ||
117 | 117 | | |||
118 | m_process=new KPtyProcess(this); | 118 | m_process=new KPtyProcess(this); | ||
119 | updateSageVersion(); | 119 | updateSageVersion(); | ||
120 | const QString& sageExecFile = SageSettings::self()->path().toLocalFile(); | 120 | const QString& sageExecFile = SageSettings::self()->path().toLocalFile(); | ||
121 | if (m_sageVersion >= SageSession::VersionInfo(8, 3)) | 121 | if (m_sageVersion >= SageSession::VersionInfo(8, 4)) | ||
122 | m_process->setProgram(sageExecFile, QStringList() << QLatin1String("--simple-prompt")); | 122 | m_process->setProgram(sageExecFile, QStringList() << QLatin1String("--simple-prompt")); | ||
123 | else | 123 | else | ||
124 | { | 124 | { | ||
125 | const QString& sageStartScript = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("cantor/sagebackend/cantor-execsage")); | 125 | const QString& sageStartScript = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("cantor/sagebackend/cantor-execsage")); | ||
126 | m_process->setProgram(sageStartScript, QStringList(sageExecFile)); | 126 | m_process->setProgram(sageStartScript, QStringList(sageExecFile)); | ||
127 | } | 127 | } | ||
128 | 128 | | |||
129 | m_process->setOutputChannelMode(KProcess::SeparateChannels); | 129 | m_process->setOutputChannelMode(KProcess::SeparateChannels); | ||
▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines |