From 4d89d6e7c02634fa36a81eaa43ac40dbfef1a2e1 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Mon, 17 May 2021 17:05:19 +0100 Subject: [PATCH] Fixes for mac logging/pty since adding sandbox --- main.cpp | 4 ++++ wfmain.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/main.cpp b/main.cpp index 6928b99..e425148 100644 --- a/main.cpp +++ b/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; diff --git a/wfmain.cpp b/wfmain.cpp index 77ad1f7..608ee4e 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -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));