Commit 647dc481 authored by Alexander Semke's avatar Alexander Semke
Browse files

Added default values for paths on windows. Done for Maxima and Octave first to...

Added default values for paths on windows. Done for Maxima and Octave first to check the correctness of the behavior with the next nightly build for win.
parent 24b0365c
Pipeline #62820 passed with stage
in 24 minutes and 46 seconds
......@@ -8,7 +8,15 @@
<group name="MaximaBackend">
<entry name="Path" type="Url">
<label>Path to the Maxima executable</label>
<default code="true">QUrl::fromLocalFile(QStandardPaths::findExecutable( QLatin1String("maxima") ))</default>
<default code="true">
[this] {
#ifdef Q_OS_WIN
return QUrl::fromLocalFile(QStandardPaths::findExecutable( QLatin1String("maxima.bat") ));
#else
return QUrl::fromLocalFile(QStandardPaths::findExecutable( QLatin1String("maxima") ));
#endif
} ()
</default>
</entry>
<entry name="localDoc" type="Url">
<label>Url to the local Maxima documentation</label>
......
......@@ -8,7 +8,15 @@
<group name="OctaveBackend">
<entry name="Path" type="Url">
<label>Path to the Octave executable</label>
<default code="true">QUrl::fromLocalFile(QStandardPaths::findExecutable( QLatin1String("octave-cli") ))</default>
<default code="true">
[this] {
#ifdef Q_OS_WIN
return QUrl::fromLocalFile(QStandardPaths::findExecutable( QLatin1String("octave-cli.exe") ));
#else
return QUrl::fromLocalFile(QStandardPaths::findExecutable( QLatin1String("octave-cli") ));
#endif
} ()
</default>
</entry>
<entry name="localDoc" type="Url">
<label>Url to the local Octave documentation</label>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment