-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Darktable 5.0 <-> GIMP 3.0 interface for windows #17853
Comments
@zisoft would you be able to check dt master vs gimp 3.0rc on windows so we might get it fixed or confirmed it works with dt 5.0? |
I'll try my very best :-) This is my PC at work and I have no admin privileges here, so neither darktable nor gimp are installed in standard windows paths. Can you tell me what steps are needed to test this? |
GIMP with latest 3.0RC and dt master should be installed.
|
I am afraid I cannot help here much. |
I don't think so. |
Just FYI: tried on 2 different computers (windows 10 and windows 11). Gimp 3.0.0-RC1 installed in default location (C:\Program Files\GIMP 3) and darktable from current master also installed in default location (C:\Program Files\darktable) and Gimp can't find darktable. |
@dtrtuser i have absolutely no idea about windows and what this means "can't find darktable". I think there might be some "registry" involved. @Jehan maybe you could step in here as we definitely want to get this working? I checked again the protocol part on dt side and that seems to be good. Any idea? I looked into gimp Would we have to set an environment variable? |
@jenshannoschwalm "can't find darktable" means that if in Gimp I go to "Edit" -> "Preferences" -> "Image Import & Export" darktable is not listed in the plug-in list and therefore not selectable. After looking at the code in Gimp plug-ins/file-raw/file-darktable.c, I ran Gimp from Windows Powershell after setting DARKTABLE_DEBUG to true and got this message:
Hope this helps. |
Could you check if the dark table.exe file exists at the tested location? |
So looking in the code, what we do on Windows to find the raw developer executable is that we look for the value of a given registry key, checking it first on For darktable in particular, this key is Maybe this key which you used to set in the Windows registry has been changed? |
We will find out :-) |
Yes, it’s there. |
**** Please read my update at bottom of this post: issue seems to be both in Gimp (missing files in install package) and darktable (malformed output path for image.exr file) **** I made some progress (but still not working) ... It seems that Gimp 3RC1 package for Windows is missing 2 files in order to be able to spawn darktable (g_spawn_sync):
If I copy these 2 files in \Program Files\Gimp 3\bin, then Gimp lists darktable in the preferences and uses darktable to open raw files. I can do my edits in darktable but when I close it (and expect to get the image in Gimp), Gimp pops up an error message:
If I look in the C:\Users\dtrtuser\AppData\Local\Temp\darktable_YLL3X2\ folder, it's empty. Also below is the output of Gimp when running from command line:
Please note that the path is missing the \ (backslash). Not sure if it is a log formatting issue or if darktable is really trying to output to this location (in which case it would explain why no file is truly created). Hope this helps. **** UPDATE **** I think the second issue (darktable not returning the image to Gimp) is because dt doesn't properly format the path to the output directory (missing backslash, as the log above suggest). I found the image.exr files in a completely different place. For instance, rather than writing the image.exr file in (Just to be clear: the output directory is properly created, but the image file (image.exr) is place in another one). |
Ah right. We tried to have our package do a small diet and over-deleted some files. This got fixed here for RC2: https://gitlab.gnome.org/GNOME/gimp/-/issues/12288 Though it looks like we only include @dtrtuser Could you verify if (also pinging @brunvonlope)
For this part of the issue, it indeed feels like it's on darktable side. Thanks for all the investigating/testing @dtrtuser ! |
I removed
My pleasure, thank you (Gimp and darktable developers) for doing all the hard work! |
Ok, i'll do the homework here :-) |
Since you're taking the gspawn executable from some msystem prefix /bin dir there is a risk of glib and its dependencies version mismatching. I would like to trigger two GIMP master builds to test the gspawn theory: one not touched and another with the additional gspawn. But this can time time since GNOME GitLab is completely broken. |
Also, I h've seen some comments about admin rights. I think they are not (and should not) be needed. I remember of using darktable without problems in my user space (before the API breakages begun). |
Let's keep this open to discuss until all issues are confirmed to be fixed. |
I was actually able to install GIMP and build dt from master (with changes from #17931, I checked the source) on my work laptop but unfortunately same issue: the path to image.exr is still missing all the backslashes. |
Ok, can you confirm that the path printed in the protocol is correct but the written file is located elsewhere? |
That's correct: both dt and Gimp are supposed to write/read the file in C:\Users\dtrtuser\AppData\Local\Temp\darktable_A3YQX2\ but dt writes it in C:\Users\dtrtuser\ and the file name is UsersdtrtuserAppDataLocalTempdarktable_A3YQX2image.exr |
Describe the bug
It seems that on windows darktable master is still not recognized in GIMP 3.0 as a plugin so developing a raw via darktable is broken.
Steps to reproduce
Can't test as not a windows user and not having access to a windows system at all.
Expected behavior
Interface should work
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
self compiled
darktable version
current master
What OS are you using?
Windows
What is the version of your OS?
???
Describe your system?
No response
Are you using OpenCL GPU in darktable?
None
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
See as reference
https://gitlab.gnome.org/GNOME/gimp/-/issues/12260
https://discuss.pixls.us/t/gimp-darktable-not-working-with-gimp-3-0-0-rc1-and-current-dt-from-master/46609/12
Opening this to keep track
The text was updated successfully, but these errors were encountered: