mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
--- src/MainWindow.cpp.orig 2014-03-27 01:03:41.000000000 +0800
|
|||
|
|
+++ src/MainWindow.cpp 2024-01-02 01:09:22.000000000 +0800
|
||
|
|
@@ -1181,35 +1181,6 @@
|
||
|
|
if(reqsAreMeet)
|
||
|
|
return ;
|
||
|
|
|
||
|
|
- // search MikTex in Path environment variable
|
||
|
|
- QString pathEnv(qgetenv("Path"));
|
||
|
|
- QStringList pathsList = pathEnv.split(";");
|
||
|
|
-
|
||
|
|
- QString MikTexPath;
|
||
|
|
- foreach(QString path, pathsList){
|
||
|
|
- if(path.contains("MikTex", Qt::CaseInsensitive)){
|
||
|
|
- MikTexPath=path;
|
||
|
|
- break;
|
||
|
|
- }
|
||
|
|
- }
|
||
|
|
-
|
||
|
|
- qDebug() << "Found Miktex at: " << MikTexPath;
|
||
|
|
-
|
||
|
|
- pdfLatexPath = QDir::toNativeSeparators(MikTexPath+"pdflatex.exe");
|
||
|
|
- gsPath = QDir::toNativeSeparators(MikTexPath+"mgs.exe");
|
||
|
|
- //pdfCairoPath = QDir::toNativeSeparators("pdftocairo.exe");
|
||
|
|
-
|
||
|
|
- settings.setValue("pdflatex", pdfLatexPath);
|
||
|
|
- settings.setValue("pdftocairo", pdfCairoPath);
|
||
|
|
- settings.setValue("gs", gsPath);
|
||
|
|
- settings.endGroup();
|
||
|
|
-
|
||
|
|
- checkPdfLatex = QFile::exists(pdfLatexPath);
|
||
|
|
-
|
||
|
|
- checkGS = QFile::exists(gsPath);
|
||
|
|
-
|
||
|
|
- checkPdfCairo = QFile::exists(pdfCairoPath);
|
||
|
|
-
|
||
|
|
if(!(checkPdfLatex && checkPdfCairo && checkGS)){
|
||
|
|
QMessageBox::critical(this, tr("Error - EqualX"), reqMessage, QMessageBox::Ok);
|
||
|
|
}
|