Thanks ensegre for the reply,
it is more or less the same approach I am adopting right now. However I would like to avoid to call the file open dialog before knowing the start path, since in some cases (if the start path is not valid anymore) it can freeze the wole application, as highlighted in this thread: