Avoid variable expansion while exporting to gimp#20288
Avoid variable expansion while exporting to gimp#20288jenshannoschwalm wants to merge 3 commits intodarktable-org:masterfrom
Conversation
502ef99 to
d1a70c5
Compare
|
@jenshannoschwalm testing now... |
d1a70c5 to
db8898d
Compare
|
@jenshannoschwalm I tested with your latest push. The image gets exported to |
|
You can test the gimp interface by providing the command line parameters as and will see what is presented as the gimp protocol. GIMP takes the filename between Could you port what you see? |
So it appears that darktable is doing it's parts, as long as you give it the full path, including drive, but GIMP doesn't seem to be picking it up. |
|
|
I'm building with your PR, so I'm pulling it from what you built with but it's pretty close to master. I had to install potrace to get it to compile. I started GIMP with the exported image file as an argument and it did open it. |
db8898d to
f66460a
Compare
|
ok, i have force push an update that doesn't log the "possibly misleading" line. Would you be able to re-test? |
|
Still doesn't work. Checked and the image.exr file is created but GIMP still isn't picking it up. ' EDIT: Read the GIMP code and discovered a debug flag to set. Here's the output... |
|
@Jehan any idea? |
We should only log this if there is a valid -d switch
While dt is working as a gimp plugin it can export via the 'export' module on user request or or while quitting and saving to a temp location as required by the protocol. We check for this via a string compare with the same magic 'XDT2GIMP' as in gimp.c and report in the logs with -d imageio switch.
We must not use variable expand anywhere while doing the final gimp export according to protocol as in - dt_util_fix_path() - internal expanding and delimiter handling
f66460a to
a8e103f
Compare
|
@wpferguson please this again :-) I think i have found the problem, we still used The recent version includes |
|
Works for me 🎆 |
I have not followed the whole thing here, but looking at the last few comments, it looks like whatever was a problem here got fixed, right? :-) |
|
@TurboGit seems we can go for this PR |
If we are running darktable as a gimp plugin we might want to do regular exports using the path defined via the variable expansion.
But for the "final export" to the temp directory the filename must stay as defined in the darktablet/gimp API protocol.
Fixes #20283
@wpferguson can you confirm this fix?
@TurboGit ok with this "work around"?