Index: main.cpp =================================================================== diff -u -rc73feffa73c7fe073a7a7581144f5806dfc91beb -r389f028cb9d4d320eae393de7c4408a58a619356 --- main.cpp (.../main.cpp) (revision c73feffa73c7fe073a7a7581144f5806dfc91beb) +++ main.cpp (.../main.cpp) (revision 389f028cb9d4d320eae393de7c4408a58a619356) @@ -101,6 +101,7 @@ QString gActiveCANBus = "can0"; bool gEnableManufacturing = false ; +bool gUseRootHome = false ; QString gParserErrorText = ""; @@ -263,6 +264,12 @@ QCoreApplication::translate("main", "Enables the manufacturing mode to configure the system for the first time.")); parser.addOption(optionEnableManufacturing); + // --- -R : use-root-home + QCommandLineOption optionUseRootHome( + QStringList() << "R" << "use-root-home", + QCoreApplication::translate("main", "In case the application is not in Manufacturing Setup but needs to use root home folder for configurations.")); + parser.addOption(optionUseRootHome); + // --- parse command lines if ( ! parser.parse(qApp->arguments()) ) { gParserErrorText = parser.errorText(); @@ -286,6 +293,7 @@ gEnableDryDemo = parser.isSet(optionEnableDryDemo ); gEnableManufacturing = parser.isSet(optionEnableManufacturing ); + gUseRootHome = parser.isSet(optionUseRootHome ); if ( parser.isSet(optionActiveCANBus ) ) { QString value = parser.value(optionActiveCANBus); @@ -405,7 +413,7 @@ commandlineParse(); // SYSTEM TEST FOR INSTRUCTIONS WHEN THERE IS NO PORT AVAILABLE - // Storage::FileHandler::copyFolder(QString(Storage::USB_Mount_Point) + "Instructions", QString(Storage::Settings_Path_Name)); + // Storage::FileHandler::copyFolder(QString(Storage::USB_Mount_Point) + "Instructions", QString(Storage::Settings_Path())); //! - Translation initialization QTranslator translator;