@ Ed - your post I was replying to seems to have gone, sorry, but much of it is in the quotes.
Edgar wrote:On Windows pre-Vista SP 2 there is only one OS function for creating the save dialog, thereafter there are two; Vista SP 2 and newer has the older XP-style save dialog function and an entirely new function. The method for seeding the working folder is quite different for these two dialogues.
I am still a little confused as to which dialogs we are using now for releases on Windows. Is it the standard wx Open and Save dialogues, where the Save dialogue is modified by addition of the "Options..." button?
Do your Smart Folders builds work on Windows XP, and the dialogue there is the pre-Vista SP2?
Edgar wrote:There is a bug in the mod-script-pipe enabling code which improperly sets CWD, this may have been removed when mod-script-pipe was removed).
In fact 2.0.1 which bundled modules doesn't have DefaultOpenPath reset to CWD by launching it from the command-line. So I guess you actually have to be running a script to trigger the bug?
Given the feature requests to use CWD from the command-line, should that bug be left unreported for now?
Edgar wrote:The reason I did not use DefaultOpenPath from the configuration file in the first place was because it was not properly flushed; Vaughan committed some changes recently which causes preferences to be flushed more often – not just when the program exits; this might help that situation. Still, we may not want to be changing the default open path, I think we want to be creating a new Save/Export seed folder (DefaultSavePath).
As I understand Vaughan's position, the solution of providing a preference to use DefaultOpenPath for ExportPath is "simpler" (or it would be, if all the import methods actually set DefaultOpenPath).
I think it is desirable that any import (including using File > Open...) sets DefaultOpenPath. As it is now, your special builds have the "inconsistency" that an import other than from the FileOpen dialogue sets ExportPath but not DefaultOpenPath, but an import using FileOpen sets both paths.
Edgar wrote:I cannot imagine how a proof of concept patch would help. If there was a Developer on Windows who wanted to experience this behavior they could try out my current application and just ignore all the other changes.
I think they could imagine the behaviour from a one line description, but will be more fired by a patch.
I'm guessing that a patch that for any import method, sets DefaultOpenPath to the folder the file came from would be preferred to your solution of a global variable. It not only fixes an inconsistent behaviour but lets us provide a preference to "Export to last opened folder" for any import method.
Given the "Preferences creep" fear, that Preferences option may be all that we'll get to start with, despite other options such as a default folder and first opened folder may be useful.
I agree the developers would still want to refactor first, but are they ever going to do it in isolation without knowing for sure that DefaultOpenPath can be set for any import method? I'm not sure I would want to test a refactoring patch without knowing that bug 550 is fixable by Vaughan's preferred method.
[Aside: what does the NewImportingSession parameter in .cfg do? It seems to appear the first time you use File > Import > Audio... .]
Gale