developer tag: Application often fail to save settings file.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In a custom application I am getting "Saving settings file failed" errors on quit. The problem is because the "/home/utkarsh/.config/temtomography/" directory doesn't exist and hence saving of "UserSettings" fails.
We should fix as follows:
-
Don't bother saving settings file is the settings weren't changed. This will also avoid saving settings file unnecessarily -- less IO, the better.
-
When saving settings file, we need to ensure the directories exists and are created if not.
Also remove the need for applications to call vtkInitializationHelper::SetApplicationName. pqApplicationCore in its contructor can pass the application name set on the QCoreApplication. This avoids the need to update existing Qt applications. Also remove the SetApplicationName from branded_paraview_initializer.cxx.in.