Index: sources/storage/StorageGlobals.cpp =================================================================== diff -u -rf724589acaa51725f5e5f8a746404d01804efbcf -re1cbc3d1ccf5877a8dfed934e33964aaadbf5b39 --- sources/storage/StorageGlobals.cpp (.../StorageGlobals.cpp) (revision f724589acaa51725f5e5f8a746404d01804efbcf) +++ sources/storage/StorageGlobals.cpp (.../StorageGlobals.cpp) (revision e1cbc3d1ccf5877a8dfed934e33964aaadbf5b39) @@ -21,6 +21,7 @@ extern bool gEnableManufacturing ; extern bool gEnableUpdating ; +extern bool gEnableRegistration ; extern bool gUseRootHome ; /*! @@ -80,7 +81,7 @@ // Settings static bool settings_secured = false; - const char *Settings_Path () { return gUseRootHome ? Settings_Path_Init : ( ( gEnableManufacturing || gEnableUpdating ) ? ( settings_secured ? Settings_Path_Name: Settings_Path_Init ) : Settings_Path_Name ); } + const char *Settings_Path () { return gUseRootHome ? Settings_Path_Init : ( ( gEnableManufacturing || gEnableUpdating || gEnableRegistration ) ? ( settings_secured ? Settings_Path_Name: Settings_Path_Init ) : Settings_Path_Name ); } void Settings_Secured() { settings_secured = true; } #ifdef BUILD_FOR_TARGET @@ -128,7 +129,7 @@ // lockdown script suppose to be the last thing to run, // and it is the lockdown.sh script which moves the scripts from root to denali home folder, // therefore in manufacturing or update mode we are still running scripts as root. - return QCoreApplication::applicationDirPath() + ( ( gEnableManufacturing || gEnableUpdating )? "/scripts/" : "/scripts/"); + return QCoreApplication::applicationDirPath() + ( ( gEnableManufacturing || gEnableUpdating || gEnableRegistration) ? "/scripts/" : "/scripts/"); #else return "/home/denali/Projects/application/scripts/"; #endif