Problem with export path

Every time I change the input location for a “special” input file, I have a devil of a time getting things working for my usual processing paths, again. I finally got it back to taking input files from my usual path, but it is still insisting on sending my output to a folder under my Linux user home directory.

The target storage is correctly set to (FILE_FOLDER)/darktable_exported/(FILE_NAME) According to the darktable documentation, $(FILE_FOLDER) is supposed to be where the input file came from. But, it is being interpreted as a subdirectory of my Linux user home directory.

Since it is correctly specified, I do not know what to change in order to send the output file to a subdirectory of the directory the input file came from.

What has gone wrong and how can I fix it?

And the forum software is changing what I typed, doing its own substitutions. :neutral_face:

I will try to quote my spec and see if the forum prints that, correctly:

$(FILE_FOLDER)/darktable_exported/$(FILE_NAME)

Yes, that is what I typed.

1 Like

If I understand what you are asking for, it should be (File dot Folder) not (File underscore Folder).

Just tested to confirm, and on my linux (deb based) version of dt this works to export to a folder called “darktable_exports” inside of the folder where the input image was from.

$(File.Folder)/darktable_exported/$(FILE_NAME)
3 Likes

Check your syntax… as noted by @AtaraxicShrug

1 Like

A dollar sign at the beginning of a line seems to enable math mode on Discourse

1 Like

It does. Preceding such characters with a \ (backslash) prevents that, and gives you the character. Compare a (typed as $a$) with $a$ (typed as \$a\$).
You can also use backticks (not to be confused with single quote marks ') around the text with special characters but this uses a different font on a tinted background.

2 Likes

Aside from the syntax, did you know you can save presets for the export module, too @Tim? Then you can easily switch back to your default export location.

3 Likes

Ok, it is working now, but oddly, it seemed to start working last night while the underscore was still used instead of the period. I did change it to the period this morning, though.

2 Likes

I would not expect the results to depend on using underscore or period, as it looks to me that the code accepts either:

else if(_has_prefix(variable, "FILE.FOLDER")
          || _has_prefix(variable, "FILE_FOLDER"))
{
    if(params->filename)
      result = g_path_get_dirname(params->filename);
}
4 Likes