From 5e4063b76192888ead2d901543c88d4734725c2e Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 8 Apr 2016 10:40:26 +0100 Subject: [PATCH] Move launcher settings store inside FG_HOME Settings now in .ini format, at $FG_HOME/flightgear.org/FlightGear.ini --- src/GUI/QtLauncher.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index ae2a95c0a..59da6532b 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -347,6 +347,10 @@ void initApp(int& argc, char** argv) // and may crash if it is freed // http://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication + QSettings::setDefaultFormat(QSettings::IniFormat); + QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, + QString::fromStdString(globals->get_fg_home())); + QApplication* app = new QApplication(s_argc, argv); app->setOrganizationName("FlightGear"); app->setApplicationName("FlightGear");