diff --git a/src/comm/QGCFlightGearLink.cc b/src/comm/QGCFlightGearLink.cc index 640cc5bdd4c179c5c6c829299f808d84a6ccded3..e48c1d143f45eda49b9691c12613ec6e0c6b603f 100644 --- a/src/comm/QGCFlightGearLink.cc +++ b/src/comm/QGCFlightGearLink.cc @@ -691,7 +691,7 @@ bool QGCFlightGearLink::connectSimulation() #elif defined Q_OS_LINUX // Linux installs to a location on the path so we don't need a directory to run the executable fgAppName = "fgfs"; - fgProcessName = "fgfs"; + _fgProcessName = "fgfs"; fgRootPath = "/usr/share/games/flightgear/"; // Default Ubuntu location as best guess #else #error Unknown OS build flavor @@ -786,6 +786,8 @@ bool QGCFlightGearLink::connectSimulation() MainWindow::instance()->showCriticalMessage(tr("FlightGear Failed to Start"), errMsg); return false; } +#else + Q_UNUSED(fgSceneryDirOverride); #endif // Check that we have a good fgRootDir set before we use it to check communication protocol files.