Remember the most recent opened directory

Hi,

I noticed that ParaView (and CMB too) does not remember the most recently opened directory after a restart. I.e. when you click on FileOpen…, it offers the same default directory (which is $HOME on my machine).

I thought that it would be useful to offer the user the most recent directory he opened, or at least add an option in the settings to have this behavior.

A way to achieve this could be:

  1. Store the last used directory in the ParaView.ini file. There is already a section [RecentDirs], we could add a new one, e.g. [MostRecentOpenDir].
  2. Modify the pqLoadDataReaction class so that it tries to fetch the value of [MostRecentOpenDir] from ParaView.ini.
  3. Add an option in the Settings.

Are you interested in this development? If so, but it is not a priority for you, I can try implementing it in a merge request.

There is a recent dir section in the file dialog:

True. It is good enough.