daisy / pipeline-gui

Desktop GUI interface for the pipeline
GNU Lesser General Public License v2.1
1 stars 2 forks source link

consider default output and temp directories #31

Open marisademeglio opened 9 years ago

marisademeglio commented 9 years ago

"Maybe output and temp directories could have a default location, such as in the system temp directory? Or maybe not, just an idea. At least, the file dialog for output directories should probably open in the same location as the last selected output directory from the previous job; my guess is that users keep all their result files in the same location."

Can we detect when a job option is for an output or temp directory?

josteinaj commented 9 years ago

We have the px:output="result|temp" attribute in the XProc scripts. However, I think the framework handles these directories so that they are not exposed through the Web API at all. How that works when you use the Java API I have no idea.

marisademeglio commented 9 years ago

this will be a good future addition along with other user preferences

marisademeglio commented 7 years ago

yeah i thought the framework dealt with temporary directories too. maybe it does and exposing them in the GUI is redundant?

bertfrees commented 7 years ago

I don't think this is the case, see issue https://github.com/daisy/pipeline-gui/issues/64.

bertfrees commented 7 years ago

I'll check.

bertfrees commented 7 years ago

It seems indeed that the framework deals with this. Now that https://github.com/daisy/pipeline-gui/issues/64 is fixed, if you leave the field empty, the framework will fill it in for you. In theory we could indeed not expose these options, however that would mean some useful documentation is also skipped (see also my comment in https://github.com/daisy/pipeline-gui/issues/63).

bertfrees commented 7 years ago

For now I'm filling in the temporary directory fields but still exposing them.

bertfrees commented 7 years ago

Not exposing certain options has another drawback: the framework will automatically store result files in a generated directory which may not be desirable, for example because it makes opening the files trickier (see https://github.com/daisy/pipeline-gui/issues/70).