I honestly don’t get this problem with the action to open in PS taking more than a single click: you edit the photo for a few minutes, then you take not 1, but say 5 seconds to send it to PS, where you probably spend quite a bit of time doing fine adjustments/clean-ups. What percentage of your editing time is the 5 seconds?
As I wrote iniatially the script ext_editors.lua, let me say as I imagined the workflow.
As @wpferguson said, you need an exchange format with if compatible with a generic external editor, normally 16 bit tiff.
“Export to collection” creates the baseline tiff file, which is the base for potentially multiple passes with different programs, hence the “edit” and “edit a copy” buttons. So you export once and edit multiple times.
One click approch (export + edit) could be done, but it would be less flexible in my view, because it would collapse the two steps in one.
That would be great!
I got this going pretty quickly, but the lua scripts manager wants me to point to the executable. I located /usr/bin/gimp and /usr/bin/gimp-2.10, and in either case Gimp will open, but it doesn’t use the system theme and all the icons are missing. So for some reason, when gimp is executed through Darktable it’s not loading properly.
What operating system?
What version of darktable?
Is darktable installed as a flatpak or snap, or something else?
Run darktable in a terminal with the -d lua flag. Try and run gimp. Post the log messages from the terminal.
I’m running darktable-4.8.0-x86_64.AppImage on ubuntu 22.04. When I run it with the flag and try to edit in Gimp, I get this:
(gimp-2.10:38073): Gtk-WARNING **: 20:46:58.739: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: libpixbufloader-svg.so: libpixbufloader-svg.so: cannot open shared object file: No such file or directory
WARNING: icon 'gimp-dynamics' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-eek' failed to load. Check the files in your icon theme.
Gtk-Message: 20:46:58.927: Failed to load module "gail"
Gtk-Message: 20:46:58.927: Failed to load module "atk-bridge"
Gtk-Message: 20:46:58.929: Failed to load module "canberra-gtk-module"
(gimp-2.10:38073): GdkPixbuf-CRITICAL **: 20:46:59.009: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp-2.10:38073): Gtk-WARNING **: 20:46:59.010: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: libpixbufloader-svg.so: libpixbufloader-svg.so: cannot open shared object file: No such file or directory
WARNING: icon 'gimp-tool-paintbrush' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-eek' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-outline' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-eek' failed to load. Check the files in your icon theme.
First, it looks like the appimage didn’t even take the flag since there are no LUA messages in the output.
Second, this is why I don’t run containers. They are fine as long as you stay in the container, but when you try and go outside things get weird/problematic.
I’ll have to set up an environment and see if I can recreate the issue so that I can see if it can be fixed.
This was a problem recently with the RawTherapee appimage, and it turns out the appimage sets some environment variables that need to be unset in order to launch an external application.
I thought about what you said and I see the advantage of exporting first and then editing, especially when it takes more than one editor to get to the final result.
Perhaps a 1 keystroke shortcut for the ones that are only doing one step.
In my case, I had to switch to the AppImage because the latest from OBS doesn’t have HEIC support.