kopia lustrzana https://gitlab.com/eliggett/wfview
Fixes for mac logging/pty since adding sandbox
rodzic
bada37acdf
commit
4d89d6e7c0
4
main.cpp
4
main.cpp
|
@ -28,7 +28,11 @@ int main(int argc, char *argv[])
|
|||
QString serialPortCL;
|
||||
QString hostCL;
|
||||
QString civCL;
|
||||
#ifdef Q_OS_MAC
|
||||
QString logFilename= QStandardPaths::standardLocations(QStandardPaths::DownloadLocation)[0] + "/wfview.log";
|
||||
#else
|
||||
QString logFilename= QStandardPaths::standardLocations(QStandardPaths::TempLocation)[0] + "/wfview.log";
|
||||
#endif
|
||||
|
||||
QString currentArg;
|
||||
|
||||
|
|
|
@ -193,7 +193,11 @@ wfmain::wfmain(const QString serialPortCL, const QString hostCL, QWidget *parent
|
|||
}
|
||||
#else
|
||||
// Provide reasonable names for the symbolic link to the pty device
|
||||
#ifdef Q_OS_MAC
|
||||
QString vspName = QStandardPaths::standardLocations(QStandardPaths::DownloadLocation)[0] + "/rig-pty";
|
||||
#else
|
||||
QString vspName=QDir::homePath()+"/rig-pty";
|
||||
#endif
|
||||
for (i=1;i<8;i++) {
|
||||
ui->vspCombo->addItem(vspName + QString::number(i));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue